From 93e5ba6924a13e684eb8c32d05850d637793da3d Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 8 Jan 2022 14:08:45 -0500 Subject: [PATCH] hello stm --- .github/workflows/build-firmware.yaml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build-firmware.yaml diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml new file mode 100644 index 0000000..5a37348 --- /dev/null +++ b/.github/workflows/build-firmware.yaml @@ -0,0 +1,29 @@ +name: Build Firmware + +on: [push, pull_request] + +jobs: + build-firmware: + 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 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + 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-2020-q2-update-x86_64-linux.tar.xz' -O compiler.tar.xz + tar -xvf compiler.tar.xz + echo "::add-path::`pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin" + + # Make sure the compiler we just downloaded works - just print out the version + - name: Test Compiler + run: arm-none-eabi-gcc -v + + - name: Build Firmware + working-directory: ./GDI-4ch\firmware + run: make