-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (49 loc) · 1.17 KB
/
build_and_test_aarch64.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and test on aarch64
on:
workflow_dispatch:
inputs:
debug:
required: false
type: boolean
description: Debug build
default: true
board:
required: false
type: choice
description: Board type
options:
- FULLSPEC
- STANDARD
default: FULLSPEC
branch:
required: true
type: string
description: Branch to build
workflow_call:
inputs:
debug:
required: false
type: boolean
default: true
board:
required: false
type: string
default: FULLSPEC
branch:
required: false
type: string
jobs:
build:
runs-on: [ora, ARM64]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Compile
run: |
debug=${{ inputs.debug && 'DEBUG=1' || '' }} &&
make -j $(nproc) BOARD=${{ inputs.board }} $debug CXX=clang++
- name: Run unit tests
run: |
debug=${{ inputs.debug && 'DEBUG=1' || '' }} &&
make -C cpp test -j $(nproc) BOARD=${{ inputs.board }} $debug CXX=clang++