Skip to content

ci: add run-on-arch for ARM64 linux #8

ci: add run-on-arch for ARM64 linux

ci: add run-on-arch for ARM64 linux #8

Workflow file for this run

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 }}
# Run steps on Bullseye=Debian 11
strategy:
matrix:
include:
- arch: aarch64
distro: buster
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 }}
env: |
CMAKE_GENERATOR: Ninja
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 -B build -DCMAKE_C_FLAGS="-Werror"
cmake --build build -j -t retest
./build/test/retest -r -v