diff --git a/.github/workflows/build-bootloader.yaml b/.github/workflows/build-bootloader.yaml new file mode 100644 index 0000000000..4afdb4dd90 --- /dev/null +++ b/.github/workflows/build-bootloader.yaml @@ -0,0 +1,28 @@ +name: Bootloader CI + +on: [push,pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + + # Build machines don't have arm-none-eabi gcc, so let's download it and put it on the path + - name: Download & Install GCC + run: | # Compiler hosted on our other git repo - avoids having to download from the nice folks at ARM every time + wget 'https://github.com/rusefi/build_support/raw/master/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.xz' -O compiler.tar.xz + tar -xvf compiler.tar.xz + echo "::add-path::`pwd`/gcc-arm-none-eabi-9-2019-q4-major/bin" + + # Make sure the compiler we just downloaded works - just print out the version + - name: Test Compiler + run: arm-none-eabi-gcc -v + + # Build the bootloader! + - name: Build Bootloader + working-directory: ./firmware/bootloader/ + run: make -j4 -f src/Makefile EXTRA_PARAMS="-DEFI_BOOTLOADER -DSTM32F405xx -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_CHECKS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DBOARD_TLE8888_COUNT=0 -DBOARD_TLE6240_COUNT=0 -DBOARD_MC33972_COUNT=0" diff --git a/firmware/bootloader/src/Makefile b/firmware/bootloader/src/Makefile index d02d73971b..500411fc8e 100644 --- a/firmware/bootloader/src/Makefile +++ b/firmware/bootloader/src/Makefile @@ -169,6 +169,7 @@ CSRC = $(STARTUPSRC) \ CPPSRC = $(CHCPPSRC) \ $(DEV_SRC_CPP) \ $(BOARDSRC_CPP) \ + $(HW_LAYER_EMS_CPP) \ $(HW_SENSORS_SRC) \ $(TUNERSTUDIO_SRC_CPP) \ $(CONSOLE_SRC_CPP) \