Skip to content

Update README.md

Update README.md #76

Workflow file for this run

# This is the name of the workflow, visible on GitHub UI.
name: Build
# Here we tell GitHub to run the workflow when a commit
# is pushed or a Pull Request is opened.
on: [push, pull_request]
# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.
jobs:
# This is the name of the job
build-matrix:
# Here we tell GitHub that the jobs must be determined
# dynamically depending on a matrix configuration.
strategy:
matrix:
# The matrix will produce one job for each configuration
# parameter of type `arduino-platform`, in this case a
# total of 2.
arduino-platform: ["arduboy-homemade:avr"]
# This is usually optional but we need to statically define the
# FQBN of the boards we want to test for each platform. In the
# future the CLI might automatically detect and download the core
# needed to compile against a certain FQBN, at that point the
# following `include` section will be useless.
include:
# This works like this: when the platform is "arduino:samd", the
# variable `fqbn` is set to "arduino:samd:nano_33_iot".
- arduino-platform: "arduboy-homemade:avr"
fqbn: "arduboy-homemade:avr:arduboy-homemade:based_on=leonardo,boot=cathy3k,core=arduino-core"
additional-url: " --additional-urls https://raw.githubusercontent.com/MrBlinky/Arduboy-homemade-package/master/package_arduboy_homemade_index.json"
# This is the platform GitHub will use to run our workflow, we
# pick Windows for no particular reason.
runs-on: windows-latest
# This is the list of steps this job will run.
steps:
# First of all, we clone the repo using the `checkout` action.
- name: Checkout
uses: actions/checkout@v3
# We use the `arduino/setup-arduino-cli` action to install and
# configure the Arduino CLI on the system.
- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v1
# We then install the platform, which one will be determined
# dynamically by the build matrix.
- name: Install platform
run: |
arduino-cli core update-index
arduino-cli core install arduino:avr
arduino-cli core install ${{ matrix.arduino-platform }} ${{ matrix.additional-url }}
# install arduboy libraries used
- name: Install Additional libraries
run: |
arduino-cli lib update-index
arduino-cli lib install "Arduboy2"
# Finally, we compile the sketch, using the FQBN that was set
# in the build matrix.
- name: Compile Sketch
run: arduino-cli compile -e --fqbn=${{ matrix.fqbn }} .\ArduRacerFx.ino
#prepare artificat folder
- name: prepare artifact
run: |
mkdir release
copy .\build\arduboy-homemade.avr.arduboy-homemade\ArduRacerFx.ino.hex .\release\ArduRacerFx.hex
copy .\Extra\ArduRacerFx.png release\ArduRacerFx.png
copy .\Extra\fxdata.bin release\fxdata.bin
copy .\Extra\fxdata-data.bin release\fxdata-data.bin
copy .\Extra\fxdata-save.bin release\fxdata-save.bin
# upload our artifact
- name: Store artifact
uses: actions/upload-artifact@v3
with:
name: ArduRacerFx
path: release/
# retention-days: 30
# release artifact, if tagged build
- name: Create release artifact, if tagged
run: Compress-Archive -Path release/* -Destination ArduRacerFx.zip
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: ArduRacerFx.zip