Added a build ci to see if new commits still work
This commit is contained in:
CommanderRedYT
2022-03-16 18:01:47 +01:00
committed by GitHub
parent 70ef49418b
commit 5ebd6e6779

32
.github/workflows/workflow.yml vendored Normal file
View File

@ -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 }}