Skip to content

Commit 28dfc07

Browse files
committed
Switch to testing matrix
1 parent 857d95a commit 28dfc07

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
container: ghcr.io/armmbed/mbed-os-env:mbed-os-6.15-latest
1313

14-
env:
15-
# The list of projects to run on. This should just run for each dir that includes a mbed_app.json
16-
PROJECTS: bms
14+
strategy:
15+
matrix:
16+
# The list of projects to run on. This should just run for each dir that includes a mbed_app.json
17+
project: [bms]
18+
# The build profile to run on
19+
profile: [debug, release]
20+
1721

1822
steps:
1923
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -23,18 +27,12 @@ jobs:
2327
- name: Install dependencies
2428
shell: bash
2529
run: |
26-
for PROJECT in $PROJECTS; do
27-
pushd $PROJECT
28-
make deps
29-
popd
30-
done
30+
cd ${{ matrix.project }}
31+
make deps
3132
3233
# Compile all projects
3334
- name: Compile
3435
shell: bash
3536
run: |
36-
for PROJECT in $PROJECTS; do
37-
pushd $PROJECT
38-
make test
39-
popd
40-
done
37+
cd ${{ matrix.project }}
38+
make build

bms/Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Build file for Formula Slug FS-2 bms
33
#
44

5-
MBED_TOOLCHAIN := GCC_ARM
6-
MBED_TARGET := LPC1768
7-
MBED_BUILD_PROFILE := release
5+
MBED_TOOLCHAIN ?= GCC_ARM
6+
MBED_TARGET ?= LPC1768
7+
MBED_BUILD_PROFILE ?= release
88

99
BUILD_DIR := cmake_build
1010

@@ -65,9 +65,3 @@ debug: build-debug
6565
.PHONY: clean
6666
clean:
6767
rm -rf $(BUILD_DIR)
68-
69-
.PHONY: test
70-
test:
71-
# Run all builds for testing
72-
make MBED_TARGET=LPC1768 MBED_BUILD_PROFILE=debug build
73-
make MBED_TARGET=LPC1768 MBED_BUILD_PROFILE=release build

0 commit comments

Comments
 (0)