Add distributed Make system for recursive sketch compilation #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
compile-sketches: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Install Arduino Tools | |
run: sudo apt-get install -y arduino arduino-core-avr | |
# Recursively build all sketches with Makefiles | |
- name: Compile Sketches | |
run: | | |
cd embedded | |
make all | |
# Upload .eep and .hex files as artifacts with expiration | |
- name: Prep Artifacts | |
run: | | |
cd embedded | |
make release | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: firmware | |
path: release/ | |
retention-days: 7 |