44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
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
|
|
id: build
|
|
continue-on-error: true
|
|
run: |
|
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
|
make -j$(nproc) ${{ matrix.config }}
|
|
|
|
# github artifacts
|
|
- name: Upload logs if failed
|
|
if: ${{ steps.build.outcome == 'failure' }}
|
|
uses: actions/upload-artifact@v2.2.4
|
|
with:
|
|
path: |
|
|
./CMakeFiles/CMakeOutput.log
|
|
./CMakeFiles/CMakeError.log
|