forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow for metro m4 express build
- Loading branch information
1 parent
4d151a0
commit db5d2ed
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
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 | ||
|