Skip to content

Commit

Permalink
add workflow for metro m4 express build
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall-Scharpf committed Nov 4, 2024
1 parent 4d151a0 commit db5d2ed
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build-rapid-0.yaml
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

0 comments on commit db5d2ed

Please sign in to comment.