From 5ebd6e6779667b5fa4f8eee2209c3e1ee9fbd2dc Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Wed, 16 Mar 2022 18:01:47 +0100 Subject: [PATCH] Added CI Added a build ci to see if new commits still work --- .github/workflows/workflow.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..b1b9cf8 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,32 @@ +name: CI +on: + push: + release: + types: + - created +# pull_request: +# types: [opened, synchronize, reopened] + +# checkout, install make and try to build + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + config: [motortest, motortest_peter, feedcode-front, feedcode-back, greyhash] + steps: + - uses: actions/checkout@v2 + with: + submodules: 'true' + + - name: Install make + run: | + sudo apt update -y + sudo apt install -y binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi cmake make + + - name: Build + run: | + cmake -DCMAKE_BUILD_TYPE=Release . + make -j$(nproc) ${{ matrix.config }}