only:reusable HW CI build script
This commit is contained in:
parent
02fc77474c
commit
54c4756fc2
|
@ -50,14 +50,6 @@ jobs:
|
|||
- name: Identify Agent
|
||||
run: uname -a
|
||||
|
||||
- name: Generate Live Documentation
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_live_documentation.sh
|
||||
|
||||
- name: Generate Board config
|
||||
working-directory: ./firmware/
|
||||
run: bash gen_config_board.sh ${{matrix.folder}} ${{matrix.build-target}}
|
||||
|
||||
- name: Acquire GCC
|
||||
working-directory: ./firmware/
|
||||
run: ./provide_gcc.sh
|
||||
|
@ -69,18 +61,8 @@ jobs:
|
|||
- name: Test/Identify Compiler
|
||||
run: arm-none-eabi-gcc -v
|
||||
|
||||
# We aren't guaranteed a clean machine every time, so manually clean the output
|
||||
- name: Clean Build
|
||||
working-directory: ./firmware
|
||||
run: make clean
|
||||
|
||||
- name: Set EXTRA env
|
||||
run: |
|
||||
echo "EXTRA_2_PARAMS=-DHARDWARE_CI" >> $GITHUB_ENV
|
||||
echo "HARDWARE_CI_SERIAL_DEVICE=${{matrix.serial-device}}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build Firmware
|
||||
run: bash misc/jenkins/compile_other_versions/compile.sh ${{matrix.folder}} ${{matrix.build-target}}
|
||||
run: .github/workflows/hw-ci/build_for_hw_ci.sh ${{matrix.folder}} ${{matrix.build-target}}
|
||||
|
||||
- name: Check for STLINK
|
||||
run: lsusb | grep 'ST-LINK\|STLINK'
|
||||
|
@ -93,6 +75,10 @@ jobs:
|
|||
working-directory: ./java_tools
|
||||
run: ./gradlew :autotest:shadowJar
|
||||
|
||||
- name: Set EXTRA env
|
||||
run: |
|
||||
echo "HARDWARE_CI_SERIAL_DEVICE=${{matrix.serial-device}}" >> $GITHUB_ENV
|
||||
|
||||
# This both compiles and runs HW CI tests
|
||||
- name: Run Hardware CI
|
||||
working-directory: ./java_console
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
HW_FOLDER=$1
|
||||
HW_TARGET=$2
|
||||
|
||||
# for instance
|
||||
# .github/workflows/hw-ci/build_for_hw_ci.sh config/boards/f407-discovery f407-discovery
|
||||
# .github/workflows/hw-ci/build_for_hw_ci.sh config/boards/proteus proteus_f4
|
||||
|
||||
set -e
|
||||
echo "HW CI build [$HW_FOLDER][$HW_TARGET]"
|
||||
|
||||
cd firmware
|
||||
|
||||
./gen_live_documentation.sh
|
||||
./gen_config_board.sh $HW_FOLDER $HW_TARGET
|
||||
|
||||
echo "We aren't guaranteed a clean machine every time, so manually clean the output."
|
||||
make clean
|
||||
cd ..
|
||||
|
||||
export EXTRA_2_PARAMS=-DHARDWARE_CI
|
||||
|
||||
echo Build Firmware
|
||||
misc/jenkins/compile_other_versions/compile.sh $HW_FOLDER $HW_TARGET
|
Loading…
Reference in New Issue