Skip to content

Commit 2ba0b56

Browse files
add annie's new rapid-0 firmware build workflow
1 parent 1fc4d72 commit 2ba0b56

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build RAPID-0 Boards
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
board: [rapid0_adcs, rapid0_cdh, rapid0_eps]
12+
steps:
13+
- name: Set up repository
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: false
17+
show-progress: false
18+
fetch-depth: 1
19+
- name: Set up python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.x
23+
- name: Set up ports
24+
id: set-up-port
25+
uses: ./.github/actions/deps/ports
26+
with:
27+
board: ${{ matrix.board }}
28+
- name: Set up submodules
29+
id: set-up-submodules
30+
uses: ./.github/actions/deps/submodules
31+
with:
32+
action: cache
33+
version: true
34+
- name: Set up external
35+
uses: ./.github/actions/deps/external
36+
with:
37+
action: cache
38+
port: ${{ steps.set-up-port.outputs.port }}
39+
- name: Set up mpy-cross
40+
if: steps.set-up-submodules.outputs.frozen == 'True'
41+
uses: ./.github/actions/mpy_cross
42+
with:
43+
cp-version: ${{ steps.set-up-submodules.outputs.version }}
44+
download: false
45+
- name: Build boards
46+
run: make -j4 -C ports/atmel-samd BOARD=${{ matrix.board }}
47+
- name: Upload artifacts
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: ${{ matrix.board }}
51+
path: ports/atmel-samd/build-${{ matrix.board }}/firmware.*
52+
overwrite: true
53+

0 commit comments

Comments
 (0)