Skip to content

Commit 108a5b7

Browse files
committed
add matrix build steps
1 parent c7191b5 commit 108a5b7

File tree

2 files changed

+32
-27
lines changed

2 files changed

+32
-27
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
name: Continuous Integration
2-
on:
3-
pull_request:
4-
types: [opened, synchronize, reopened]
5-
push:
6-
branches:
7-
- master
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
push:
6+
branches:
7+
- master
88

99
jobs:
1010
report:
1111
name: Report
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: ref
15-
run: echo ${{ github.ref }}
16-
- name: event_name
17-
run: echo ${{ github.event_name }}
14+
- name: ref
15+
run: echo ${{ github.ref }}
16+
- name: event_name
17+
run: echo ${{ github.event_name }}
1818
build:
1919
name: Build
20-
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
os: [macos-latest, windows-latest, ubuntu-latest]
23+
runs-on: ${{ matrix.os }}
2124
steps:
22-
- name: checkout
23-
uses: actions/checkout@v2
24-
- uses: actions/setup-go@v2
25-
with:
26-
go-version: ^1.16
27-
- name: vet
28-
run: make vet
29-
- name: lint
30-
run: make lint
31-
- name: image
32-
run: make image
33-
- name: test
34-
run: make test
35-
25+
- name: checkout
26+
uses: actions/checkout@v2
27+
- uses: actions/setup-go@v2
28+
with:
29+
go-version: ^1.16
30+
- run: go build
31+
- name: vet
32+
run: make vet
33+
- name: lint
34+
run: make lint
35+
- name: image
36+
if: ${{ runner.os == "Linux" }}
37+
run: make image
38+
- name: test
39+
if: ${{ runner.os == "Linux" }}
40+
run: make test

diskfs_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !darwin || linux || solaris || aix || freebsd || illumos || netbsd || openbsd || plan9
2-
// +build !darwin linux solaris aix freebsd illumos netbsd openbsd plan9
1+
//go:build linux || solaris || aix || freebsd || illumos || netbsd || openbsd || plan9
2+
// +build linux solaris aix freebsd illumos netbsd openbsd plan9
33

44
package diskfs
55

0 commit comments

Comments
 (0)