9
9
# container: ubuntu:20.04
10
10
steps :
11
11
- name : Checkout sources
12
- uses : actions/checkout@v2
12
+ uses : actions/checkout@v3
13
13
14
14
- name : Update package list
15
15
run : sudo apt-get update
18
18
run : sudo apt-get install curl wget -y
19
19
20
20
- name : Install stable toolchain
21
- uses : actions-rs/ toolchain@v1
21
+ uses : dtolnay/rust- toolchain@stable
22
22
with :
23
- profile : minimal
24
- toolchain : stable
25
- override : true
26
23
components : rustfmt, clippy
27
24
28
25
- name : Install Alsa devel
@@ -31,181 +28,157 @@ jobs:
31
28
- name : Install PulseAudio
32
29
run : DEBIAN_FRONTEND="noninteractive" sudo apt-get install libpulse0 libpulse-dev -y
33
30
31
+ - name : Install Jack
32
+ run : DEBIAN_FRONTEND="noninteractive" sudo apt-get install libjack-dev -y
33
+
34
34
- name : Install OpenSSL
35
35
run : sudo apt-get install openssl libssl-dev -y
36
36
37
37
- name : Run cargo check
38
- uses : actions-rs/cargo@v1
39
- with :
40
- command : check
38
+ run : cargo check
41
39
42
40
- name : Run cargo check nodefault
43
- uses : actions-rs/cargo@v1
44
- with :
45
- command : check
46
- args : --no-default-features
41
+ run : cargo check --no-default-features
47
42
48
- - name : Run cargo test with pulse-backend
49
- uses : actions-rs/ cargo@v1
50
- with :
51
- command : test
52
- args : --features pulse-backend
43
+ - name : Run cargo test with all supported backends
44
+ run : cargo test --features bluez-backend,cpal-backend,jack-backend,pulse-backend,
45
+
46
+ - name : Run cargo test with all optional features
47
+ run : cargo test --features 32bit,debug,fftw,secure-websocket
53
48
54
49
- name : Run cargo fmt
55
- uses : actions-rs/cargo@v1
56
- with :
57
- command : fmt
58
- args : --all -- --check
50
+ run : cargo fmt --all -- --check
59
51
60
52
- name : Run cargo clippy
61
- uses : actions-rs/cargo@v1
62
- with :
63
- command : clippy
64
- args : -- -D warnings
65
-
66
-
53
+ run : cargo clippy -- -D warnings
67
54
68
55
check_test_arm :
69
56
name : Check and test Linux arm
70
57
runs-on : ubuntu-latest
71
58
steps :
72
59
- name : Checkout sources
73
- uses : actions/checkout@v2
60
+ uses : actions/checkout@v3
74
61
75
62
- name : Install stable toolchain
76
- uses : actions-rs/ toolchain@v1
63
+ uses : dtolnay/rust- toolchain@stable
77
64
with :
78
- profile : minimal
79
- toolchain : stable
80
- target : armv7-unknown-linux-gnueabihf
81
- override : true
65
+ targets : armv7-unknown-linux-gnueabihf
66
+
67
+ - name : Install cross
68
+ run : cargo install cross --git https://github.com/cross-rs/cross
82
69
83
70
- name : Build image
84
71
run : docker build -t cross/armv7:v1 --file Dockerfile_armv7 ./
85
72
86
73
- name : Run cargo check
87
- uses : actions-rs/cargo@v1
88
- with :
89
- command : check
90
- use-cross : true
91
- args : --target armv7-unknown-linux-gnueabihf
74
+ run : cross check --target armv7-unknown-linux-gnueabihf
92
75
93
76
- name : Run cargo test for arm
94
- uses : actions-rs/cargo@v1
95
- with :
96
- command : test
97
- use-cross : true
98
- args : --target armv7-unknown-linux-gnueabihf
77
+ run : cross test --target armv7-unknown-linux-gnueabihf
99
78
100
79
check_test_arm64 :
101
80
name : Check and test Linux arm 64bit
102
81
runs-on : ubuntu-latest
103
82
steps :
104
83
- name : Checkout sources
105
- uses : actions/checkout@v2
84
+ uses : actions/checkout@v3
106
85
107
86
- name : Install stable toolchain
108
- uses : actions-rs/ toolchain@v1
87
+ uses : dtolnay/rust- toolchain@stable
109
88
with :
110
- profile : minimal
111
- toolchain : stable
112
- target : aarch64-unknown-linux-gnu
113
- override : true
89
+ targets : aarch64-unknown-linux-gnu
90
+
91
+ - name : Install cross
92
+ run : cargo install cross --git https://github.com/cross-rs/cross
114
93
115
94
- name : Build image
116
95
run : docker build -t cross/armv8:v1 --file Dockerfile_armv8 ./
117
96
118
97
- name : Run cargo check
119
- uses : actions-rs/cargo@v1
120
- with :
121
- command : check
122
- use-cross : true
123
- args : --target aarch64-unknown-linux-gnu
98
+ run : cross check --target aarch64-unknown-linux-gnu
124
99
125
100
- name : Run cargo test for arm
126
- uses : actions-rs/cargo@v1
101
+ run : cross test --target aarch64-unknown-linux-gnu
102
+
103
+ check_test_armv6 :
104
+ name : Check and test Linux arm v6
105
+ runs-on : ubuntu-latest
106
+ steps :
107
+ - name : Checkout sources
108
+ uses : actions/checkout@v3
109
+
110
+ - name : Install stable toolchain
111
+ uses : dtolnay/rust-toolchain@stable
127
112
with :
128
- command : test
129
- use-cross : true
130
- args : --target aarch64-unknown-linux-gnu
113
+ targets : arm-unknown-linux-gnueabihf
114
+
115
+ - name : Install cross
116
+ run : cargo install cross --git https://github.com/cross-rs/cross
131
117
118
+ - name : Build image
119
+ run : docker build -t cross/armv6:v1 --file Dockerfile_armv6 ./
120
+
121
+ - name : Run cargo check
122
+ run : cross check --target arm-unknown-linux-gnueabihf
123
+
124
+ - name : Run cargo test for arm
125
+ run : cross test --target arm-unknown-linux-gnueabihf
126
+ env :
127
+ LD_LIBRARY_PATH : /usr/lib/arm-linux-gnueabihf
132
128
133
129
check_test_windows :
134
130
name : Check and test Windows
135
131
runs-on : windows-latest
136
132
steps :
137
133
- name : Checkout sources
138
- uses : actions/checkout@v2
134
+ uses : actions/checkout@v3
139
135
140
136
- name : Install stable toolchain
141
- uses : actions-rs/toolchain@v1
142
- with :
143
- profile : minimal
144
- toolchain : stable
145
- override : true
137
+ uses : dtolnay/rust-toolchain@stable
146
138
147
139
- name : Run cargo check
148
- uses : actions-rs/cargo@v1
149
- with :
150
- command : check
151
- args : --no-default-features
140
+ run : cargo check --no-default-features
152
141
153
142
- name : Run cargo test
154
- uses : actions-rs/cargo@v1
155
- with :
156
- command : test
157
- args : --no-default-features
143
+ run : cargo test --no-default-features
158
144
159
145
check_test_macos :
160
146
name : Check and test macOS
161
147
runs-on : macos-latest
162
148
steps :
163
149
- name : Checkout sources
164
- uses : actions/checkout@v2
150
+ uses : actions/checkout@v3
165
151
166
152
- name : Install stable toolchain
167
- uses : actions-rs/toolchain@v1
168
- with :
169
- profile : minimal
170
- toolchain : stable
171
- override : true
153
+ uses : dtolnay/rust-toolchain@stable
172
154
173
155
- name : Run cargo check
174
- uses : actions-rs/cargo@v1
175
- with :
176
- command : check
156
+ run : cargo check --no-default-features
177
157
178
158
- name : Run cargo test
179
- uses : actions-rs/cargo@v1
180
- with :
181
- command : test
182
-
159
+ run : cargo test --no-default-features
183
160
184
161
check_macos_arm :
185
162
name : Check macOS aarch64
186
163
runs-on : macos-latest
187
164
steps :
188
165
- name : Checkout sources
189
- uses : actions/checkout@v2
166
+ uses : actions/checkout@v3
190
167
191
- - name : Install stable toolchain for arm
192
- uses : actions-rs/ toolchain@v1
168
+ - name : Install stable toolchain
169
+ uses : dtolnay/rust- toolchain@stable
193
170
with :
194
- profile : minimal
195
- toolchain : stable
196
- override : true
197
- target : aarch64-apple-darwin
171
+ targets : aarch64-apple-darwin
172
+
173
+ - name : Install cross
174
+ run : cargo install cross --git https://github.com/cross-rs/cross
198
175
199
176
- name : Run cargo check for arm
200
- uses : actions-rs/cargo@v1
201
- with :
202
- command : check
203
- args : --target aarch64-apple-darwin
177
+ run : cross check --target aarch64-apple-darwin
204
178
env :
205
- SDKROOT : /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
206
- MACOSX_DEPLOYMENT_TARGET : 11.1
207
- DEVELOPER_DIR : /Applications/Xcode_12.4.app
208
-
179
+ SDKROOT : /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk
180
+ MACOSX_DEPLOYMENT_TARGET : 13.1
181
+ DEVELOPER_DIR : /Applications/Xcode_14.2.app
209
182
210
183
211
184
0 commit comments