|
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | container: |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + use_heif: [ non_heif ] #, heif ] - heif problems with mingw |
13 | 16 | runs-on: ubuntu-22.04 |
14 | 17 | container: |
15 | | - image: ghcr.io/piegamesde/gtk4-cross:gtk-4.8 |
| 18 | + image: ghcr.io/mglolenstine/gtk4-cross:gtk-4.10 |
16 | 19 | steps: |
17 | 20 | - uses: actions/checkout@v1 |
18 | 21 | - name: Install additional dependencies |
|
33 | 36 | with: |
34 | 37 | path: target |
35 | 38 | key: windows-build-target |
| 39 | + |
| 40 | + - name: Cross compile for Windows Heif |
| 41 | + run: | |
| 42 | + #!/bin/bash |
| 43 | + set -euo pipefail |
| 44 | + export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig:$MINGW_PREFIX/lib/pkgconfig/:/usr/x86_64-w64-mingw32/lib/pkgconfig/ |
| 45 | + cargo build --target=x86_64-pc-windows-gnu --release --locked --features heif |
| 46 | + mkdir -p package |
| 47 | + cp target/x86_64-pc-windows-gnu/release/czkawka_gui.exe package/ |
| 48 | + cp target/x86_64-pc-windows-gnu/release/czkawka_cli.exe package/ |
| 49 | + if: ${{ matrix.use_heif == 'heif' }} |
| 50 | + |
36 | 51 | - name: Cross compile for Windows |
37 | 52 | run: | |
38 | 53 | #!/bin/bash |
|
42 | 57 | mkdir -p package |
43 | 58 | cp target/x86_64-pc-windows-gnu/release/czkawka_gui.exe package/ |
44 | 59 | cp target/x86_64-pc-windows-gnu/release/czkawka_cli.exe package/ |
| 60 | + if: ${{ matrix.use_heif == 'non_heif' }} |
| 61 | + |
45 | 62 | - name: Package |
46 | 63 | run: | |
47 | 64 | #!/bin/bash |
|
67 | 84 | - name: Upload artifacts |
68 | 85 | uses: actions/upload-artifact@v3 |
69 | 86 | with: |
70 | | - name: czkawka-windows-${{ github.sha }} |
| 87 | + name: czkawka-windows-${{ github.sha }}-${{ matrix.use_heif }} |
71 | 88 | path: | |
72 | 89 | ./package |
73 | 90 | if-no-files-found: error |
|
76 | 93 | container_console_window: |
77 | 94 | runs-on: ubuntu-22.04 |
78 | 95 | container: |
79 | | - image: ghcr.io/piegamesde/gtk4-cross:gtk-4.8 |
| 96 | + image: ghcr.io/mglolenstine/gtk4-cross:gtk-4.10 |
80 | 97 | steps: |
81 | 98 | - uses: actions/checkout@v1 |
82 | 99 | - name: Install additional dependencies |
|
0 commit comments