Skip to content

Commit 9cb9877

Browse files
committed
ci: add ci for different platforms
1 parent 061d84e commit 9cb9877

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/master.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,23 @@ on:
44
jobs:
55
check:
66
runs-on: ubuntu-latest
7+
steps:
8+
- name: Run golangci-lint
9+
uses: golangci/golangci-lint-action@v6.1.1
10+
build-and-test:
11+
strategy:
12+
matrix:
13+
goarch: [amd64, 386, arm64, arm]
14+
os: [ubuntu-latest, windows-latest]
15+
runs-on: ${{ matrix.os }}
716
steps:
817
- uses: actions/checkout@v2
918
- name: Build
1019
run: go build ./...
20+
env:
21+
GOARCH: ${{ matrix.goarch }}
1122
- name: Run Tests
1223
run: go test ./...
13-
- name: Run golangci-lint
14-
uses: golangci/golangci-lint-action@v2.5.2
24+
env:
25+
GOARCH: ${{ matrix.goarch }}
1526

0 commit comments

Comments
 (0)