Skip to content

Commit

Permalink
Merge pull request #1 from sysprog21/ci-arm-none-eabi-gcc
Browse files Browse the repository at this point in the history
CI: Bump Arm GNU Toolchain
  • Loading branch information
jserv authored Nov 21, 2024
2 parents c2fe7ec + f2a7030 commit ca456a4
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/ci_cortex_m.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
name: cortex_m

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# events but only for the dev branch
on:
push:
branches: [ master ]
branches: [ dev ]
pull_request:
branches: [ master ]
branches: [ dev ]
paths:
- ".github/workflows/ci_cortex_m.yml"
- 'common/**'
Expand Down Expand Up @@ -39,39 +39,24 @@ jobs:
with:
submodules: true

# Store the arm compilers in the cache to speed up builds
- name: Cache arm-none-eabi-gcc tools
id: cache-arm-gcc
uses: actions/cache@v1
with:
path: $HOME/arm-none-eabi-gcc-9-2019-q4
key: ${{ runner.os }}-arm-gcc-9-2019-q4

# Get the arm-non-eabi-gcc toolchain
- name: Install arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
uses: carlosperate/arm-none-eabi-gcc-action@v1
if: steps.cache-arm-gcc.outputs.cache-hit != 'true'
with:
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
directory: $HOME/arm-none-eabi-gcc-9-2019-q4
release: '13.3.Rel1' # The arm-none-eabi-gcc release to use.

# Get CMake into the environment
- name: Install cmake 3.19.1
uses: lukka/get-cmake@v3.19.1
- name: Install cmake
uses: lukka/get-cmake@v3.31.0

# Get Ninja into the environment
- name: Install ninja-build
uses: seanmiddleditch/gha-setup-ninja@v3
uses: seanmiddleditch/gha-setup-ninja@v5

# Prepare the build system
- name: Prepare build system
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"

- name: Compile and link
run: cmake --build ./build
env:
PATH: "$HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH"


0 comments on commit ca456a4

Please sign in to comment.