Skip to content

Commit e693107

Browse files
committed
CI should take in consideration pico and nucleo.
1 parent 01d149c commit e693107

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
name: Build
2-
3-
on: [push, pull_request]
4-
51
jobs:
62
build:
73
runs-on: ubuntu-latest
4+
strategy:
5+
matrix:
6+
include:
7+
- target: thumbv6m-none-eabi
8+
dir: neotron-bmc-pico/
9+
- target: thumbv7m-none-eabihf
10+
dir: neotron-bmc-nucleo/
811
steps:
9-
- name: Checkout
12+
- name: Checkout source code
1013
uses: actions/checkout@v1
1114
with:
1215
submodules: true
1316
- name: Add Target
14-
run: rustup target add thumbv6m-none-eabi
17+
run: rustup target add ${{ matrix.target }}
1518
- name: Install flip-link
1619
run: cd / && cargo install flip-link
17-
- name: Build
18-
run: cargo build --release --verbose --target=thumbv6m-none-eabi
20+
- name: Build project
21+
run: cd ${{ matrix.dir }} && cargo build --release --verbose --target=${{ matrix.target }}

0 commit comments

Comments
 (0)