Skip to content

Commit

Permalink
ci: add run-on-arch for ARM64 linux
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Jan 9, 2024
1 parent 729e464 commit 553a17b
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/run-on-arch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on: [push, pull_request]

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

# Run steps on Bullseye=Debian 11
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 }}

env: |
CMAKE_GENERATOR: Ninja
shell: /bin/bash

install: |
case "${{ matrix.distro }}" in
ubuntu*|jessie|stretch|buster|bullseye)
apt-get update -q -y
apt-get install -q -y cmake gcc git libssl-dev ninja-build valgrind
;;
esac
run: |
cmake -B build -DCMAKE_C_FLAGS="-Werror"
cmake --build build -j -t retest
valgrind --leak-check=full --show-reachable=yes --error-exitcode=42 ./build/test/retest -r -v

0 comments on commit 553a17b

Please sign in to comment.