From af5c90ed4a20e86b7ae266002bd94d4fbc5f5c96 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Thu, 11 Jan 2024 09:26:47 +0100 Subject: [PATCH] ci: add run-on-arch for ARM64 linux (#1045) --- .github/workflows/run-on-arch.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/run-on-arch.yml diff --git a/.github/workflows/run-on-arch.yml b/.github/workflows/run-on-arch.yml new file mode 100644 index 000000000..6be3488ce --- /dev/null +++ b/.github/workflows/run-on-arch.yml @@ -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