-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (55 loc) · 1.27 KB
/
build_and_test.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
56
57
58
59
60
61
name: Build and test on aarch64
on:
workflow_call:
inputs:
debug:
required: false
type: boolean
board:
required: false
type: string
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
board:
required: false
type: string
branch:
required: false
type: string
jobs:
build:
runs-on: [self-hosted]
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++