Skip to content

Commit cad6c42

Browse files
Fix action to run on fork repo for cortex-m builds and unify them (#326)
1 parent e420e2f commit cad6c42

File tree

5 files changed

+14
-241
lines changed

5 files changed

+14
-241
lines changed

.github/workflows/cache-update.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/ci_cortex_m7.yml renamed to .github/workflows/ci_cortex_m.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -10,9 +10,12 @@ on:
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
@@ -57,7 +65,7 @@ jobs:
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

.github/workflows/ci_cortex_m0.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/ci_cortex_m3.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/ci_cortex_m4.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)