Skip to content

Commit c841e37

Browse files
committed
Add msys2-mingw test to CI.
1 parent fbe9fbd commit c841e37

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,33 @@ jobs:
234234
- name: Build and test all crates
235235
run: cargo test -vv
236236

237+
mingw:
238+
name: mingw
239+
runs-on: windows-latest
240+
strategy:
241+
fail-fast: false
242+
matrix:
243+
rust: [stable]
244+
steps:
245+
- name: Checkout repository
246+
uses: actions/checkout@v2
247+
with: {submodules: true}
248+
- name: Install Rust (${{matrix.rust}})
249+
uses: actions-rs/toolchain@v1
250+
with: {toolchain: '${{matrix.rust}}', profile: minimal, override: true}
251+
- name: Install HDF5
252+
shell: pwsh
253+
run: |
254+
$env:PATH="$env:PATH;C:\msys64\mingw64\bin;C:\msys64\usr\bin;"
255+
C:\msys64\usr\bin\pacman.exe -Syu --noconfirm
256+
C:\msys64\usr\bin\pacman.exe -S --noconfirm mingw-w64-x86_64-hdf5
257+
- name: Build and test all crates
258+
shell: pwsh
259+
run: |
260+
$env:HDF5_DIR="C:\msys64\mingw64"
261+
$env:PATH="$env:PATH;C:\msys64\mingw64\bin;"
262+
cargo test -vv
263+
237264
msrv:
238265
name: Minimal Supported Rust Version
239266
runs-on: ubuntu-18.04

0 commit comments

Comments
 (0)