Skip to content

Commit

Permalink
Test aarch64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Ceratto committed Nov 18, 2020
1 parent c55f672 commit 3dd4411
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,36 @@ jobs:
with:
name: ooniprobe-linux-amd64
path: ./CLI/linux/amd64/ooniprobe

aarch64_build:
runs-on: "ubuntu-latest"
name: Build on aarch64 Buster
steps:
- uses: actions/checkout@v2.1.0
- uses: uraimo/run-on-arch-action@v2.0.5
name: Run commands
id: runcmd
with:
arch: aarch64
distro: buster
# distro: ubuntu20.04 # no linux-headers-arm64

# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}

run: |
uname -a
apt-get update
apt-get install -q -y --no-install-recommends gcc git linux-headers-arm64 musl-dev golang ca-certificates
go version
go env
go build -tags netgo -ldflags='-s -w -extldflags "-static"' ./cmd/ooniprobe
- name: Get the output
run: |
echo "The output was ${{ steps.runcmd.outputs.uname }}"
- name: Show the artifact
run: |
ls -al "${PWD}/artifacts"

0 comments on commit 3dd4411

Please sign in to comment.