Difference of shielded/control #75
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: Build firmware | |
on: | |
# Triggers the workflow on push or pull request events but only for the "SPACEDOS03A" branch | |
push: | |
branches: [ "SPACEDOS03A" ] | |
pull_request: | |
branches: [ "SPACEDOS03A" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Update git hash | |
run: | | |
echo "// This file is overwritten by github actions, do not update it manually" > fw/SPACEDOS03/githash.h | |
echo "String githash = "\""${{ github.sha }}"\"";" >> fw/SPACEDOS03/githash.h | |
echo "// This file is overwritten by github actions, do not update it manually" > fw/SPACEDOS03_ISS/githash.h | |
echo "String githash = "\""${{ github.sha }}"\"";" >> fw/SPACEDOS03_ISS/githash.h | |
- name: Compile all sources | |
uses: ArminJo/arduino-test-compile@v3 | |
with: | |
arduino-board-fqbn: MightyCore:avr:1284:BOD=disabled,LTO=Os,clock=1MHz_internal,variant=modelP | |
platform-url: https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json | |
#required-libraries: | |
debug-install: False | |
debug-compile: False | |
- name: Store data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: fw | |
path: fw | |
retention-days: 1 | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'Add build files' | |
add: '*.hex' |