51 lines (38 loc) · 914 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Go
on: [pull_request]
jobs:
test:
strategy:
matrix:
go:
- 1.17.x
- 1.18.x
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Download Dependencies
run: go mod download
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -v ./...
- name: Test (purego)
run: go test -race -tags purego -v ./...
gen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Ensure generated assembler code is up to date
run: |
go install github.com/kevinburke/differ@1.2
differ make --always-make build