use custom gitmodules #16
Workflow file for this run
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 RAPID-0 Boards | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
board: [metro_m4_express] | |
steps: | |
- name: Set up repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: false | |
show-progress: false | |
fetch-depth: 1 | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Set up ports | |
id: set-up-port | |
uses: ./.github/actions/deps/ports | |
with: | |
board: ${{ matrix.board }} | |
- name: Set up submodules | |
id: set-up-submodules | |
uses: ./.github/actions/deps/submodules | |
with: | |
action: cache | |
version: true | |
- name: Set up external | |
uses: ./.github/actions/deps/external | |
with: | |
action: cache | |
port: ${{ steps.set-up-port.outputs.port }} | |
- name: Set up mpy-cross | |
if: steps.set-up-submodules.outputs.frozen == 'True' | |
uses: ./.github/actions/mpy_cross | |
with: | |
cp-version: ${{ steps.set-up-submodules.outputs.version }} | |
download: false | |
- name: Build boards | |
run: make -j4 -C ports/atmel-samd BOARD=${{ matrix.board }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.board }} | |
path: ports/atmel-samd/build-${{ matrix.board }}/firmware.* | |
overwrite: true | |