mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
CI: added test of signed firmware builds
This commit is contained in:
parent
f899a47429
commit
ddf770330d
5
.github/workflows/test_chibios.yml
vendored
5
.github/workflows/test_chibios.yml
vendored
@ -30,7 +30,8 @@ jobs:
|
|||||||
MatekF405-Wing,
|
MatekF405-Wing,
|
||||||
CubeOrange-ODID,
|
CubeOrange-ODID,
|
||||||
configure-all,
|
configure-all,
|
||||||
build-options-defaults-test
|
build-options-defaults-test,
|
||||||
|
signing
|
||||||
]
|
]
|
||||||
toolchain: [
|
toolchain: [
|
||||||
chibios, # GCC-6
|
chibios, # GCC-6
|
||||||
@ -50,6 +51,8 @@ jobs:
|
|||||||
config: periph-build
|
config: periph-build
|
||||||
- gcc: 6
|
- gcc: 6
|
||||||
config: CubeOrange-ODID
|
config: CubeOrange-ODID
|
||||||
|
- gcc: 6
|
||||||
|
config: signing
|
||||||
include:
|
include:
|
||||||
- config: stm32h7
|
- config: stm32h7
|
||||||
toolchain: chibios-py2
|
toolchain: chibios-py2
|
||||||
|
@ -343,6 +343,21 @@ for t in $CI_BUILD_TARGET; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$t" == "signing" ]; then
|
||||||
|
echo "Building signed firmwares"
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y python3-dev
|
||||||
|
python3 -m pip install pymonocypher
|
||||||
|
./Tools/scripts/signing/generate_keys.py testkey
|
||||||
|
$waf configure --board CubeOrange-ODID --signed-fw --private-key testkey_private_key.dat
|
||||||
|
$waf copter
|
||||||
|
$waf configure --board MatekL431-DShot --signed-fw --private-key testkey_private_key.dat
|
||||||
|
$waf AP_Periph
|
||||||
|
./Tools/scripts/build_bootloaders.py --signing-key testkey_public_key.dat CubeOrange-ODID
|
||||||
|
./Tools/scripts/build_bootloaders.py --signing-key testkey_public_key.dat MatekL431-DShot
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$t" == "python-cleanliness" ]; then
|
if [ "$t" == "python-cleanliness" ]; then
|
||||||
echo "Checking Python code cleanliness"
|
echo "Checking Python code cleanliness"
|
||||||
./Tools/scripts/run_flake8.py
|
./Tools/scripts/run_flake8.py
|
||||||
|
Loading…
Reference in New Issue
Block a user