Skip to content

Workflow udpate

Workflow udpate #11

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++