File tree Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change 11
11
strategy :
12
12
matrix :
13
13
go-version : [1.16.x, 1.15.x]
14
- platform : [ubuntu-latest]
14
+ platform : [ubuntu-latest, windows-latest ]
15
15
16
16
runs-on : ${{ matrix.platform }}
17
17
env :
20
20
GODEBUG : cgocheck=0
21
21
defaults :
22
22
run :
23
- working-directory : ${{ env.GOPATH }}/src/gonum.org/v1/gonum
23
+ working-directory : ${{ env.GOPATH }}/src/gonum.org/v1/hdf5
24
24
25
25
steps :
26
26
- name : Install Go
@@ -46,16 +46,39 @@ jobs:
46
46
with :
47
47
path : ${{ env.GOPATH }}/src/gonum.org/v1/hdf5
48
48
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
+
49
58
- name : Install Linux packages
50
59
if : matrix.platform == 'ubuntu-latest'
51
60
run : |
52
61
sudo apt-get update
53
62
sudo apt-get install -qq pkg-config libhdf5-serial-dev
54
63
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'
56
72
run : |
57
73
go install ./...
58
74
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'
60
83
run : |
61
84
go test ./...
You can’t perform that action at this time.
0 commit comments