Skip to content

Commit

Permalink
Add CI test for ARM64 (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-ward authored Dec 24, 2021
1 parent d0ea847 commit b3c552d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down

0 comments on commit b3c552d

Please sign in to comment.