-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (34 loc) · 944 Bytes
/
linux-arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Linux (aarch64)
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install aarch64 Toolchain
run: sudo apt update && sudo apt install g++-aarch64-linux-gnu qemu qemu-user qemu-user-static
- name: Install Clang 17
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 17
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DRPP_TEST=ON -DRPP_QEMU=ON
env:
CXX: clang++-17 --target=aarch64-linux-gnu
CXXFLAGS: -march=armv8-a
AR: aarch64-linux-gnu-ar
AS: aarch64-linux-gnu-as
LD: aarch64-linux-gnu-ld
STRIP: aarch64-linux-gnu-strip
- name: Build
run: cmake --build build -- -j
- name: Test
run: ctest --test-dir build --output-on-failure