@@ -25,29 +25,28 @@ jobs:
25
25
- {command: clippy, rust: stable}
26
26
steps :
27
27
- name : Checkout repository
28
- uses : actions/checkout@v2
28
+ uses : actions/checkout@v3
29
29
- name : Install Rust (${{matrix.rust}})
30
- uses : actions-rs/ toolchain@v1
31
- with : {profile: minimal, toolchain: '${{matrix.rust}}', override: true , components: 'rustfmt, clippy'}
30
+ uses : dtolnay/rust- toolchain@stable
31
+ with : {toolchain: '${{matrix.rust}}', components: 'rustfmt, clippy'}
32
32
- name : Install HDF5
33
33
run : sudo apt-get install libhdf5-dev
34
34
- name : Run cargo ${{matrix.command}}
35
- uses : actions-rs/cargo@v1
36
- with :
37
- command : ${{matrix.command}}
38
- args : " ${{matrix.command == 'fmt' && '--all -- --check' || '--workspace --exclude hdf5-src -- -D warnings -D clippy::cargo -A clippy::multiple-crate-versions'}}"
35
+ run : cargo ${{matrix.command}} ${{matrix.command == 'fmt' && '--all -- --check' || '--workspace --exclude hdf5-src -- -D warnings -D clippy::cargo -A clippy::multiple-crate-versions'}}
39
36
40
37
doc : # This task should mirror the procedure on docs.rs
41
38
runs-on : ubuntu-latest
42
39
steps :
43
40
- name : Checkout repository
44
- uses : actions/checkout@v2
41
+ uses : actions/checkout@v3
45
42
with : {submodules: true}
46
43
- name : Install Rust (${{matrix.rust}})
47
- uses : actions-rs/ toolchain@v1
48
- with : {toolchain: nightly, profile: minimal, override: true }
44
+ uses : dtolnay/rust- toolchain@stable
45
+ with : {toolchain: nightly}
49
46
- name : Document workspace
50
- run : env RUSTDOCFLAGS="--cfg docsrs" cargo doc --features hdf5-sys/static,hdf5-sys/zlib,blosc,lzf
47
+ env :
48
+ RUSTDOCFLAGS : " --cfg docsrs"
49
+ run : cargo doc --features hdf5-sys/static,hdf5-sys/zlib,blosc,lzf
51
50
52
51
brew :
53
52
name : brew
@@ -62,11 +61,11 @@ jobs:
62
61
- {version: hdf5-mpi, mpi: true}
63
62
steps :
64
63
- name : Checkout repository
65
- uses : actions/checkout@v2
64
+ uses : actions/checkout@v3
66
65
with : {submodules: true}
67
66
- name : Install Rust (${{matrix.rust}})
68
- uses : actions-rs/ toolchain@v1
69
- with : {toolchain: stable, profile: minimal, override: true }
67
+ uses : dtolnay/rust- toolchain@stable
68
+ with : {toolchain: stable}
70
69
- name : Install HDF5 (${{matrix.version}})
71
70
run : brew install ${{matrix.version}}
72
71
- name : Build and test all crates
@@ -107,11 +106,11 @@ jobs:
107
106
shell : bash -l {0}
108
107
steps :
109
108
- name : Checkout repository
110
- uses : actions/checkout@v2
109
+ uses : actions/checkout@v3
111
110
with : {submodules: true}
112
111
- name : Install Rust (${{matrix.rust}})
113
- uses : actions-rs/ toolchain@v1
114
- with : {toolchain: '${{matrix.rust}}', profile: minimal, override: true }
112
+ uses : dtolnay/rust- toolchain@stable
113
+ with : {toolchain: '${{matrix.rust}}'}
115
114
- name : Install conda
116
115
uses : conda-incubator/setup-miniconda@v2
117
116
with : {auto-update-conda: false, activate-environment: testenv}
@@ -141,11 +140,11 @@ jobs:
141
140
- {os: macos, rust: stable}
142
141
steps :
143
142
- name : Checkout repository
144
- uses : actions/checkout@v2
143
+ uses : actions/checkout@v3
145
144
with : {submodules: true}
146
145
- name : Install Rust (${{matrix.rust}})
147
- uses : actions-rs/ toolchain@v1
148
- with : {toolchain: '${{matrix.rust}}', profile: minimal, override: true }
146
+ uses : dtolnay/rust- toolchain@stable
147
+ with : {toolchain: '${{matrix.rust}}'}
149
148
- name : Build and test all crates
150
149
run : cargo test --workspace -v --features hdf5-sys/static,hdf5-sys/zlib --exclude hdf5-derive
151
150
- name : Build and test with filters
@@ -168,11 +167,11 @@ jobs:
168
167
- {mpi: openmpi, rust: stable}
169
168
steps :
170
169
- name : Checkout repository
171
- uses : actions/checkout@v2
170
+ uses : actions/checkout@v3
172
171
with : {submodules: true}
173
172
- name : Install Rust (${{matrix.rust}})
174
- uses : actions-rs/ toolchain@v1
175
- with : {toolchain: '${{matrix.rust}}', profile: minimal, override: true }
173
+ uses : dtolnay/rust- toolchain@stable
174
+ with : {toolchain: '${{matrix.rust}}'}
176
175
- name : Install HDF5 (${{matrix.mpi}})
177
176
run : |
178
177
[ "${{matrix.mpi}}" == "mpich" ] && PACKAGES="libhdf5-mpich-dev mpich"
@@ -200,11 +199,11 @@ jobs:
200
199
version : ["1.8", "1.10", "1.12", "1.14"]
201
200
steps :
202
201
- name : Checkout repository
203
- uses : actions/checkout@v2
202
+ uses : actions/checkout@v3
204
203
with : {submodules: true}
205
204
- name : Install Rust (${{matrix.rust}})
206
- uses : actions-rs/ toolchain@v1
207
- with : {toolchain: '${{matrix.rust}}', profile: minimal, override: true }
205
+ uses : dtolnay/rust- toolchain@stable
206
+ with : {toolchain: '${{matrix.rust}}'}
208
207
- name : Configure environment
209
208
shell : bash
210
209
run : |
@@ -246,11 +245,11 @@ jobs:
246
245
rust : [stable]
247
246
steps :
248
247
- name : Checkout repository
249
- uses : actions/checkout@v2
248
+ uses : actions/checkout@v3
250
249
with : {submodules: true}
251
250
- name : Install Rust (${{matrix.rust}})
252
- uses : actions-rs/ toolchain@v1
253
- with : {toolchain: '${{matrix.rust}}', target : x86_64-pc-windows-gnu, profile: minimal, override: true }
251
+ uses : dtolnay/rust- toolchain@stable
252
+ with : {toolchain: '${{matrix.rust}}', targets : x86_64-pc-windows-gnu}
254
253
- name : Install HDF5
255
254
shell : pwsh
256
255
run : |
@@ -270,40 +269,43 @@ jobs:
270
269
fail-fast : false
271
270
steps :
272
271
- name : Checkout repository
273
- uses : actions/checkout@v2
272
+ uses : actions/checkout@v3
274
273
with : {submodules: true}
275
274
- name : Install Rust
276
- uses : actions-rs/ toolchain@v1
277
- with : {toolchain: 1.64, profile: minimal, override: true }
275
+ uses : dtolnay/rust- toolchain@stable
276
+ with : {toolchain: 1.64}
278
277
- name : Build and test all crates
279
278
run :
280
279
cargo test --workspace -vv --features=hdf5-sys/static --exclude=hdf5-derive
281
280
282
- # # TODO: temporarily disabled until fixed (see https://github.com/aldanor/hdf5-rust/issues/241)
283
- # wine:
284
- # name: wine
285
- # runs-on: ubuntu-latest
286
- # steps:
287
- # - name: Checkout repository
288
- # uses: actions/checkout@v2
289
- # with: {submodules: true}
290
- # - name: Install Rust
291
- # uses: actions-rs/toolchain@v1
292
- # with: {toolchain: stable, target: x86_64-pc-windows-gnu, profile: minimal, override: true}
293
- # - name: Install dependencies
294
- # run: sudo apt-get update && sudo apt install wine64 mingw-w64
295
- # - name: Build and test
296
- # run: env CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER=wine64 cargo test --features hdf5-sys/static --target x86_64-pc-windows-gnu -- --skip test_compile_fail
297
-
281
+ wine :
282
+ name : wine
283
+ runs-on : ubuntu-latest
284
+ steps :
285
+ - name : Checkout repository
286
+ uses : actions/checkout@v3
287
+ with : {submodules: true}
288
+ - name : Install Rust
289
+ uses : dtolnay/rust-toolchain@stable
290
+ with : {toolchain: stable, targets: x86_64-pc-windows-gnu}
291
+ - name : Install dependencies
292
+ run : sudo apt-get update && sudo apt install wine64 mingw-w64
293
+ - name : Build and test
294
+ env :
295
+ CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER : wine64
296
+ run : cargo test --features hdf5-sys/static --target x86_64-pc-windows-gnu -- --skip test_compile_fail
297
+
298
298
addr_san :
299
299
name : Address sanitizer
300
300
runs-on : ubuntu-latest
301
301
steps :
302
302
- name : Checkout repository
303
- uses : actions/checkout@v2
303
+ uses : actions/checkout@v3
304
304
with : {submodules: true}
305
305
- name : Install Rust
306
- uses : actions-rs/ toolchain@v1
306
+ uses : dtolnay/rust- toolchain@stable
307
307
with : {toolchain: nightly, profile: minimal, override: true}
308
308
- name : Run test with sanitizer
309
- run : env RUSTFLAGS="-Z sanitizer=address" cargo test --features hdf5-sys/static --target x86_64-unknown-linux-gnu --workspace --exclude hdf5-derive
309
+ env :
310
+ RUSTFLAGS : " -Z sanitizer=address"
311
+ run : cargo test --features hdf5-sys/static --target x86_64-unknown-linux-gnu --workspace --exclude hdf5-derive
0 commit comments