Skip to content

Commit

Permalink
ci: add run-on-arch for ARM64 linux (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Jan 11, 2024
1 parent 974f273 commit af5c90e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/run-on-arch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on: [push, pull_request]

jobs:
build_job:
# The host should always be linux
runs-on: ubuntu-20.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}

strategy:
matrix:
include:
- arch: aarch64
distro: bullseye

steps:
- uses: actions/checkout@v4

- uses: uraimo/run-on-arch-action@v2
name: Build artifact
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}

# Not required, but speeds up builds
githubToken: ${{ github.token }}

install: |
case "${{ matrix.distro }}" in
ubuntu*|jessie|stretch|buster|bullseye)
apt-get update -q -y
apt-get install -q -y cmake gcc g++ libssl-dev ninja-build
;;
esac
run: |
cmake -G Ninja -B build -DCMAKE_C_FLAGS="-Werror"
cmake --build build -j --target retest
./build/test/retest -r -v

0 comments on commit af5c90e

Please sign in to comment.