give exact plate model used #120
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: CI | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
build-application-windows: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: microsoft/setup-msbuild@v1.0.2 | |
- uses: NuGet/setup-nuget@v1.0.5 | |
- name: Restore Packages | |
run: nuget restore Programs/Serial_003/Miriam_Serial/Miriam.sln | |
- name: build | |
run: msbuild Programs/Serial_003/Miriam_Serial/Miriam.sln /p:Configuration=Release /p:Platform="Any CPU" | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: miriam-application-windows | |
path: D:\a\Miriam\Miriam\Programs\Serial_003\Miriam_Serial\MiriamTests\bin\Release\Miriam_Serial.exe | |
build-firmware: | |
# Based on https://legion2.github.io/2020/03/27/from-arduino-builder-to-arduino-cli.html | |
# and https://blog.arduino.cc/2019/11/14/arduino-on-github-actions/ | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@master | |
- uses: arduino/setup-arduino-cli@v1.1.1 | |
- name: Install platform | |
run: | | |
arduino-cli core update-index | |
arduino-cli core install arduino:avr | |
- name: Compile Sketch | |
run: arduino-cli compile --fqbn arduino:avr:mega:cpu=atmega2560 --libraries ./Programs/PID_v1 --output-dir miriam-firmware ./Programs/Serial_003/Serial_003 | |
# TODO: also include the source code because it seems easier flash Arduino | |
# firmware from source. Unfortunately flashing a .hex file seems rather | |
# painful https://forum.arduino.cc/index.php?topic=417659.0 . | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: miriam-firmware | |
path: miriam-firmware\Serial_003.ino.hex |