Add CI test for ARM64 (#132)

This commit is contained in:
Brendan Ward 2021-12-24 12:29:36 -08:00 committed by GitHub
parent d0ea8479c0
commit b3c552d8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,33 @@ jobs:
- name: Test
run: go test -v ./...
test-arm64:
strategy:
matrix:
go: [1.16.x, 1.17.x]
runs-on: ubuntu-latest
env:
CGO_ENABLED: 1
steps:
- name: Install GCC and SQLite for Arm64
uses: ryankurte/action-apt@v0.3.0
with:
arch: arm64
packages: "gcc-10-aarch64-linux-gnu gcc-aarch64-linux-gnu libsqlite3-dev:arm64"
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
GOOS=linux GOARCH=arm64 CGO_ENABLED=1 CC="/usr/bin/aarch64-linux-gnu-gcc" go build .
shell: bash
- name: Test
run: go test -v ./...
coverage:
runs-on: ubuntu-latest
steps: