Skip to content

Commit

Permalink
Fix action to run on fork repo for cortex-m builds and unify them (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
TiejunMS authored Nov 24, 2023
1 parent e420e2f commit cad6c42
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 241 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/cache-update.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: cortex_m7
name: cortex_m

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -10,9 +10,12 @@ on:
pull_request:
branches: [ master ]
paths:
- ".github/workflows/ci_cortex_m7.yml"
- ".github/workflows/ci_cortex_m.yml"
- 'common/**'
- 'utility/**'
- 'ports/cortex_m0/gnu/**'
- 'ports/cortex_m3/gnu/**'
- 'ports/cortex_m4/gnu/**'
- 'ports/cortex_m7/gnu/**'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand All @@ -22,13 +25,18 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

strategy:
matrix:
port: [0, 3, 4, 7]

name: Cortex M${{ matrix.port }} build

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout sources recursively
uses: actions/checkout@v2
- name: Check out the repository
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
submodules: true

# Store the arm compilers in the cache to speed up builds
Expand Down Expand Up @@ -57,7 +65,7 @@ jobs:

# Prepare the build system
- name: Prepare build system
run: cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=./cmake/cortex_m7.cmake -GNinja .
run: cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=./cmake/cortex_m${{ matrix.port }}.cmake -GNinja .
env:
PATH: "$HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH"

Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/ci_cortex_m0.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/ci_cortex_m3.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/ci_cortex_m4.yml

This file was deleted.

0 comments on commit cad6c42

Please sign in to comment.