mirror of
https://github.com/consbio/mbtileserver.git
synced 2024-09-11 07:15:24 +03:00
Add CI test for ARM64 (#132)
This commit is contained in:
parent
d0ea8479c0
commit
b3c552d8c1
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user