diff --git a/.github/workflows/ci_cortex_m.yml b/.github/workflows/ci_cortex_m.yml index 57e1149bb..49ab7c5c3 100644 --- a/.github/workflows/ci_cortex_m.yml +++ b/.github/workflows/ci_cortex_m.yml @@ -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/**' @@ -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" - -