From a617cb30a5ede671bbf6b3f5505805a81ec643c4 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 13 Mar 2020 19:12:52 -0700 Subject: [PATCH] bootloader ci (#1189) * bootloader ci * trailing slash * Revert "progress?" This reverts commit 6085bee00543503557ce9640d4facfe8b0995592. Co-authored-by: Matthew Kennedy --- .github/workflows/build-bootloader.yaml | 28 +++++++++++++++++++++++++ firmware/bootloader/src/Makefile | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/build-bootloader.yaml 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) \