9
9
CARGO_TERM_COLOR : always
10
10
11
11
jobs :
12
+ linux-krokiet-gui :
13
+ strategy :
14
+ matrix :
15
+ toolchain : [ stable, 1.72.1 ]
16
+ type : [ release ]
17
+ runs-on : ubuntu-20.04
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+
21
+ - name : Setup rust version
22
+ run : rustup default ${{ matrix.toolchain }}
23
+
24
+ - name : Build Release Krokiet
25
+ run : cargo build --release --bin krokiet
26
+ if : ${{ (matrix.type == 'release') }}
27
+
28
+ - name : Store Linux GUI Krokiet
29
+ uses : actions/upload-artifact@v3
30
+ with :
31
+ name : krokiet-${{ runner.os }}-${{ matrix.toolchain }}
32
+ path : target/release/krokiet
33
+ if : ${{ matrix.type == 'release' }}
34
+
35
+ linux-krokiet-gui-heif :
36
+ strategy :
37
+ matrix :
38
+ toolchain : [ stable, 1.72.1 ]
39
+ type : [ release ]
40
+ runs-on : ubuntu-22.04
41
+ steps :
42
+ - uses : actions/checkout@v3
43
+
44
+ - name : Install basic libraries
45
+ run : sudo apt update || true; sudo apt install libheif-dev libraw-dev -y
46
+
47
+ - name : Setup rust version
48
+ run : rustup default ${{ matrix.toolchain }}
49
+
50
+ - name : Build Release Krokiet heif
51
+ run : cargo build --release --bin krokiet --features "heif,libraw"
52
+ if : ${{ (matrix.type == 'release') }}
53
+
54
+ - name : Store Linux GUI Krokiet heif libraw
55
+ uses : actions/upload-artifact@v3
56
+ with :
57
+ name : krokiet-${{ runner.os }}-${{ matrix.toolchain }}-heif-libraw
58
+ path : target/release/krokiet
59
+ if : ${{ matrix.type == 'release' }}
60
+
12
61
linux-gui :
13
62
strategy :
14
63
matrix :
15
- toolchain : [ stable, 1.70.0 ]
64
+ toolchain : [ stable, 1.72.1 ]
16
65
type : [ release ]
17
66
runs-on : ubuntu-22.04
18
67
steps :
19
68
- uses : actions/checkout@v3
20
69
21
70
- name : Install basic libraries
22
- run : sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev -y
71
+ run : sudo apt update || true ; sudo apt install libgtk-4-dev libheif-dev libraw -dev -y
23
72
24
73
- name : Setup rust version
25
74
run : rustup default ${{ matrix.toolchain }}
26
75
27
- - name : Build Release Heif
28
- run : cargo build --release --features heif
29
- env :
30
- CARGO_INCREMENTAL : 0
31
- RUSTFLAGS : " -C debuginfo=0"
32
- if : ${{ (matrix.type == 'release') && (matrix.toolchain == '1.70.0') }}
76
+ - name : Build Release Heif Libraw
77
+ run : cargo build --release --bin czkawka_gui --features "heif,libraw"
78
+ if : ${{ (matrix.type == 'release') }}
33
79
34
- - name : Store Linux GUI Heif
80
+ - name : Store Linux GUI Heif Libraw
35
81
uses : actions/upload-artifact@v3
36
82
with :
37
- name : czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}-heif
83
+ name : czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}-heif-libraw
38
84
path : target/release/czkawka_gui
39
- if : ${{ matrix.type == 'release' }}
85
+ if : ${{ ( matrix.type == 'release') && (matrix.toolchain == 'stable') }}
40
86
41
87
- name : Build Release
42
- run : cargo build --release
43
- env :
44
- CARGO_INCREMENTAL : 0
45
- RUSTFLAGS : " -C debuginfo=0"
46
- if : ${{ (matrix.type == 'release') && (matrix.toolchain == 'stable') }}
88
+ run : cargo build --release --bin czkawka_gui
89
+ if : ${{ (matrix.type == 'release') }}
47
90
91
+ # Only store stable toolchain
48
92
- name : Store Linux GUI
49
93
uses : actions/upload-artifact@v3
50
94
with :
51
95
name : czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}
52
96
path : target/release/czkawka_gui
53
- if : ${{ matrix.type == 'release' }}
97
+ if : ${{ ( matrix.type == 'release') && (matrix.toolchain == 'stable') }}
54
98
55
99
linux-appimage-gui :
56
100
strategy :
@@ -62,16 +106,13 @@ jobs:
62
106
- uses : actions/checkout@v3
63
107
64
108
- name : Install Dependencies
65
- run : sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y
109
+ run : sudo apt update || true ; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y
66
110
67
111
- name : Setup rust version
68
112
run : rustup default ${{ matrix.toolchain }}
69
113
70
114
- name : Build Release
71
- run : cargo build --release
72
- env :
73
- CARGO_INCREMENTAL : 0
74
- RUSTFLAGS : " -C debuginfo=0"
115
+ run : cargo build --release --bin czkawka_gui
75
116
76
117
- name : Download appimage dependencies
77
118
run : |
@@ -118,13 +159,10 @@ jobs:
118
159
- uses : actions/checkout@v3
119
160
120
161
- name : Install Dependencies
121
- run : sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y xvfb
162
+ run : sudo apt update || true ; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y xvfb
122
163
123
164
- name : Setup rust version
124
165
run : rustup default ${{ matrix.toolchain }}
125
166
126
167
- name : Test
127
168
run : xvfb-run cargo test
128
- env :
129
- CARGO_INCREMENTAL : 0
130
- RUSTFLAGS : " -C debuginfo=0"
0 commit comments