1
1
# This is a basic workflow to help you get started with Actions
2
2
3
- name : cortex_m7
3
+ name : cortex_m
4
4
5
5
# Controls when the action will run. Triggers the workflow on push or pull request
6
6
# events but only for the master branch
10
10
pull_request :
11
11
branches : [ master ]
12
12
paths :
13
- - " .github/workflows/ci_cortex_m7 .yml"
13
+ - " .github/workflows/ci_cortex_m .yml"
14
14
- ' common/**'
15
15
- ' utility/**'
16
+ - ' ports/cortex_m0/gnu/**'
17
+ - ' ports/cortex_m3/gnu/**'
18
+ - ' ports/cortex_m4/gnu/**'
16
19
- ' ports/cortex_m7/gnu/**'
17
20
18
21
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -22,13 +25,18 @@ jobs:
22
25
# The type of runner that the job will run on
23
26
runs-on : ubuntu-latest
24
27
28
+ strategy :
29
+ matrix :
30
+ port : [0, 3, 4, 7]
31
+
32
+ name : Cortex M${{ matrix.port }} build
33
+
25
34
# Steps represent a sequence of tasks that will be executed as part of the job
26
35
steps :
27
36
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28
- - name : Checkout sources recursively
29
- uses : actions/checkout@v2
37
+ - name : Check out the repository
38
+ uses : actions/checkout@v4
30
39
with :
31
- token : ${{ secrets.REPO_SCOPED_TOKEN }}
32
40
submodules : true
33
41
34
42
# Store the arm compilers in the cache to speed up builds
57
65
58
66
# Prepare the build system
59
67
- name : Prepare build system
60
- run : cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=./cmake/cortex_m7 .cmake -GNinja .
68
+ run : cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=./cmake/cortex_m${{ matrix.port }} .cmake -GNinja .
61
69
env :
62
70
PATH : " $HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH"
63
71
0 commit comments