mirror of
https://github.com/joeycastillo/second-movement.git
synced 2025-10-29 19:47:40 +00:00
Build in CI using a build matrix (#41)
This commit is contained in:
parent
50dec7f82a
commit
efeba609db
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@ -6,15 +6,24 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- gh-pages
|
- gh-pages
|
||||||
|
|
||||||
env:
|
|
||||||
BOARD: sensorwatch_red
|
|
||||||
DISPLAY: classic
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/armmbed/mbed-os-env:latest
|
image: ghcr.io/armmbed/mbed-os-env:latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
board:
|
||||||
|
- "sensorwatch_red"
|
||||||
|
- "sensorwatch_green"
|
||||||
|
- "sensorwatch_blue"
|
||||||
|
- "sensorwatch_pro"
|
||||||
|
display:
|
||||||
|
- "classic"
|
||||||
|
- "custom"
|
||||||
|
env:
|
||||||
|
BOARD: ${{ matrix.board }}
|
||||||
|
DISPLAY: ${{ matrix.display }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -28,12 +37,25 @@ jobs:
|
|||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: movement.uf2
|
name: ${{ matrix.board }}-display-${{ matrix.display }}-movement.uf2
|
||||||
path: build/firmware.uf2
|
path: build/firmware.uf2
|
||||||
|
|
||||||
build-simulator:
|
build-simulator:
|
||||||
container:
|
container:
|
||||||
image: emscripten/emsdk
|
image: emscripten/emsdk
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
board:
|
||||||
|
- "sensorwatch_red"
|
||||||
|
- "sensorwatch_green"
|
||||||
|
- "sensorwatch_blue"
|
||||||
|
- "sensorwatch_pro"
|
||||||
|
display:
|
||||||
|
- "classic"
|
||||||
|
- "custom"
|
||||||
|
env:
|
||||||
|
BOARD: ${{ matrix.board }}
|
||||||
|
DISPLAY: ${{ matrix.display }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -52,5 +74,5 @@ jobs:
|
|||||||
- name: Upload simulator build
|
- name: Upload simulator build
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: movement.tar.gz
|
name: ${{ matrix.board }}-display-${{ matrix.display }}-movement.tar.gz
|
||||||
path: build-sim/movement.tar.gz
|
path: build-sim/movement.tar.gz
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user