add proteus hw ci yaml (#2304)

* add yaml

* it may help if I got the name right

* s

* poke

* clean

* kick

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2021-02-08 17:53:44 -08:00 committed by GitHub
parent 1012b61e02
commit 5dc2ef7a09
1 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,53 @@
name: Firmware Hardware CI (Proteus)
on: [push, pull_request]
jobs:
build-firmware:
runs-on: hw-ci-proteus
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Identify Agent
run: uname -a
- name: Generate Configs
working-directory: ./firmware/
run: bash gen_config_default.sh
- name: Generate Enum Strings
working-directory: ./firmware/
run: bash gen_enum_to_string.sh
- name: Generate Default config
working-directory: ./firmware/
run: bash gen_config_default.sh
- name: Generate Live Documentation
working-directory: ./firmware/
run: bash gen_live_documentation.sh
# Make sure the compiler works
- name: Test 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: Build Firmware
working-directory: ./firmware
run: make -j4 EXTRA_PARAMS="-DHARDWARE_CI" PROJECT_BOARD=proteus
- name: OpenOCD wipe & flash STM32
working-directory: ./firmware
run: openocd -f "interface/stlink.cfg" -f "target/stm32f4x.cfg" -c init -c targets -c "reset halt" -c "flash erase_sector 0 0 11" -c "flash write_image "build/rusefi.bin" 0x08000000" -c "reset run" -c "shutdown"
# This both compiles and runs HW CI tests
- name: Run Hardware CI
working-directory: ./java_console
run: ant hardware_ci_proteus