mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-25 01:09:09 -04:00
arduino CI 1
This commit is contained in:
51
.github/workflows/arduino.yml
vendored
Normal file
51
.github/workflows/arduino.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Arduino Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
# This is the name of the job - can be whatever.
|
||||
test-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: ["rp2040:rp2040"]
|
||||
# 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: "rp2040:rp2040"
|
||||
fqbn: "rp2040:rp2040:rpipico"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# First of all, we clone the repo using the `checkout` action.
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 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 ${{ matrix.arduino-platform }}
|
||||
|
||||
- name: Run PWD
|
||||
run: pwd
|
||||
|
||||
Reference in New Issue
Block a user