11# This is a basic workflow to help you get started with Actions
22
3- name : cortex_m7
3+ name : cortex_m
44
55# Controls when the action will run. Triggers the workflow on push or pull request
66# events but only for the master branch
1010 pull_request :
1111 branches : [ master ]
1212 paths :
13- - " .github/workflows/ci_cortex_m7 .yml"
13+ - " .github/workflows/ci_cortex_m .yml"
1414 - ' common/**'
1515 - ' utility/**'
16+ - ' ports/cortex_m0/gnu/**'
17+ - ' ports/cortex_m3/gnu/**'
18+ - ' ports/cortex_m4/gnu/**'
1619 - ' ports/cortex_m7/gnu/**'
1720
1821# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -22,13 +25,18 @@ jobs:
2225 # The type of runner that the job will run on
2326 runs-on : ubuntu-latest
2427
28+ strategy :
29+ matrix :
30+ port : [0, 3, 4, 7]
31+
32+ name : Cortex M${{ matrix.port }} build
33+
2534 # Steps represent a sequence of tasks that will be executed as part of the job
2635 steps :
2736 # 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
3039 with :
31- token : ${{ secrets.REPO_SCOPED_TOKEN }}
3240 submodules : true
3341
3442 # Store the arm compilers in the cache to speed up builds
5765
5866 # Prepare the build system
5967 - 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 .
6169 env :
6270 PATH : " $HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH"
6371
0 commit comments