Merge pull request #51 from ZeniteSolar/joaomario/new_ids #137
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: firmware.build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- 'firmware/**' | |
- '.config/**' | |
- '.github/**' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'firmware/**' | |
- '.config/**' | |
- '.github/**' | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
# GET DEPENDENCIES | |
- name: Install dependencies | |
run: sudo apt-get install -y binutils-avr gcc-avr avr-libc | |
- run: avr-gcc --version | |
# BUILD | |
- name: Build libraries | |
run: | | |
cd firmware | |
./makelibs.sh | |
- name: Build firmware | |
run: | | |
cd firmware | |
make | |
# UPLOAD | |
- name: Upload firmware | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Firmware | |
path: firmware/bin |