From b3c552d8c1ea1c5c94887e3400983d159881e106 Mon Sep 17 00:00:00 2001 From: Brendan Ward Date: Fri, 24 Dec 2021 12:29:36 -0800 Subject: [PATCH] Add CI test for ARM64 (#132) --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c4d1e1..3c573b7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: