CI: added test of signed firmware builds

This commit is contained in:
Andrew Tridgell 2022-09-03 15:20:58 +10:00
parent f899a47429
commit ddf770330d
2 changed files with 19 additions and 1 deletions

View File

@ -30,7 +30,8 @@ jobs:
MatekF405-Wing,
CubeOrange-ODID,
configure-all,
build-options-defaults-test
build-options-defaults-test,
signing
]
toolchain: [
chibios, # GCC-6
@ -50,6 +51,8 @@ jobs:
config: periph-build
- gcc: 6
config: CubeOrange-ODID
- gcc: 6
config: signing
include:
- config: stm32h7
toolchain: chibios-py2

View File

@ -343,6 +343,21 @@ for t in $CI_BUILD_TARGET; do
continue
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
echo "Checking Python code cleanliness"
./Tools/scripts/run_flake8.py