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