forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (46 loc) · 1.27 KB
/
tiiuae-pixhawk-and-saluki-builder.yaml
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
on:
workflow_call:
inputs:
product:
required: true
type: string
keys:
required: true
type: string
enabled:
required: false
type: boolean
default: true
secrets:
GH_REPO_TOKEN:
required: false
jobs:
build:
runs-on: ubuntu-latest
if: ${{ inputs.enabled }}
steps:
- name: Checkout px4-firmware
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_REPO_TOKEN }}
# if we clone_public, then do not clone submodules, otherwise 'recursive'
submodules: ${{ inputs.clone_public == true && 'false' || 'recursive' }}
path: px4-firmware
fetch-depth: 0
- name: Run px4-firmware ${{ inputs.product }} build
run: |
set -eux
if [ -n ${{ inputs.keys }} ]; then
export SIGNING_ARGS=${{ inputs.keys }}
fi
mkdir -p bin
cd px4-firmware/
# run clone_public.sh if clone_public flag is provided
./clone_public.sh
./build.sh ../bin/ ${{ inputs.product }}
- name: Upload ${{ inputs.product }}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.product }}
path: bin/
retention-days: 1