File tree Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
container : ghcr.io/armmbed/mbed-os-env:mbed-os-6.15-latest
13
13
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
+
17
21
18
22
steps :
19
23
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -23,18 +27,12 @@ jobs:
23
27
- name : Install dependencies
24
28
shell : bash
25
29
run : |
26
- for PROJECT in $PROJECTS; do
27
- pushd $PROJECT
28
- make deps
29
- popd
30
- done
30
+ cd ${{ matrix.project }}
31
+ make deps
31
32
32
33
# Compile all projects
33
34
- name : Compile
34
35
shell : bash
35
36
run : |
36
- for PROJECT in $PROJECTS; do
37
- pushd $PROJECT
38
- make test
39
- popd
40
- done
37
+ cd ${{ matrix.project }}
38
+ make build
Original file line number Diff line number Diff line change 2
2
# Build file for Formula Slug FS-2 bms
3
3
#
4
4
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
8
8
9
9
BUILD_DIR := cmake_build
10
10
@@ -65,9 +65,3 @@ debug: build-debug
65
65
.PHONY : clean
66
66
clean :
67
67
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
You can’t perform that action at this time.
0 commit comments