From 84f322043a8b217acfda3bded5d3a08227485b0c Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Wed, 16 Mar 2022 17:46:43 +0100 Subject: [PATCH] Added CI --- .github/workflows/workflow.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..f03e07e --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,28 @@ +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 + matrix: + config: [motortest, feedc0de-front, feedc0de-back, greyhash] + steps: + - uses: actions/checkout@v2 + + - name: Install make + run: | + apt update -y + apt install -y binutils-arm-none-eabi gcc-arm-none-eabi newlib-arm-none-eabi cmake make + + - name: Build + run: | + cmake -DCMAKE_BUILD_TYPE=Release . + make -j$(nproc) ${{ matrix.config }} \ No newline at end of file