Skip to content

Commit 760617b

Browse files
mattnkortschak
authored andcommitted
hdf5: CI for Windows
1 parent 3d862bf commit 760617b

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
go-version: [1.16.x, 1.15.x]
14-
platform: [ubuntu-latest]
14+
platform: [ubuntu-latest, windows-latest]
1515

1616
runs-on: ${{ matrix.platform }}
1717
env:
@@ -20,7 +20,7 @@ jobs:
2020
GODEBUG: cgocheck=0
2121
defaults:
2222
run:
23-
working-directory: ${{ env.GOPATH }}/src/gonum.org/v1/gonum
23+
working-directory: ${{ env.GOPATH }}/src/gonum.org/v1/hdf5
2424

2525
steps:
2626
- name: Install Go
@@ -46,16 +46,39 @@ jobs:
4646
with:
4747
path: ${{ env.GOPATH }}/src/gonum.org/v1/hdf5
4848

49+
- name: Install Windows packages
50+
if: matrix.platform == 'windows-latest'
51+
uses: msys2/setup-msys2@v2
52+
with:
53+
update: true
54+
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-hdf5
55+
msystem: MINGW64
56+
path-type: inherit
57+
4958
- name: Install Linux packages
5059
if: matrix.platform == 'ubuntu-latest'
5160
run: |
5261
sudo apt-get update
5362
sudo apt-get install -qq pkg-config libhdf5-serial-dev
5463
55-
- name: Build
64+
- name: Build Windows
65+
if: matrix.platform == 'windows-latest'
66+
run: |
67+
go install ./...
68+
shell: msys2 {0}
69+
70+
- name: Build Linux
71+
if: matrix.platform == 'ubuntu-latest'
5672
run: |
5773
go install ./...
5874
59-
- name: Test
75+
- name: Test Windows
76+
if: matrix.platform == 'windows-latest'
77+
run: |
78+
go test ./...
79+
shell: msys2 {0}
80+
81+
- name: Test Linux
82+
if: matrix.platform == 'ubuntu-latest'
6083
run: |
6184
go test ./...

0 commit comments

Comments
 (0)