|
3 | 3 | name: cortex_m |
4 | 4 |
|
5 | 5 | # Controls when the action will run. Triggers the workflow on push or pull request |
6 | | -# events but only for the master branch |
| 6 | +# events but only for the dev branch |
7 | 7 | on: |
8 | 8 | push: |
9 | | - branches: [ master ] |
| 9 | + branches: [ dev ] |
10 | 10 | pull_request: |
11 | | - branches: [ master ] |
| 11 | + branches: [ dev ] |
12 | 12 | paths: |
13 | 13 | - ".github/workflows/ci_cortex_m.yml" |
14 | 14 | - 'common/**' |
@@ -39,39 +39,24 @@ jobs: |
39 | 39 | with: |
40 | 40 | submodules: true |
41 | 41 |
|
42 | | - # Store the arm compilers in the cache to speed up builds |
43 | | - - name: Cache arm-none-eabi-gcc tools |
44 | | - id: cache-arm-gcc |
45 | | - uses: actions/cache@v1 |
46 | | - with: |
47 | | - path: $HOME/arm-none-eabi-gcc-9-2019-q4 |
48 | | - key: ${{ runner.os }}-arm-gcc-9-2019-q4 |
49 | | - |
50 | 42 | # Get the arm-non-eabi-gcc toolchain |
51 | 43 | - name: Install arm-none-eabi-gcc |
52 | | - uses: fiam/arm-none-eabi-gcc@v1 |
| 44 | + uses: carlosperate/arm-none-eabi-gcc-action@v1 |
53 | 45 | if: steps.cache-arm-gcc.outputs.cache-hit != 'true' |
54 | 46 | with: |
55 | | - release: '9-2019-q4' # The arm-none-eabi-gcc release to use. |
56 | | - directory: $HOME/arm-none-eabi-gcc-9-2019-q4 |
| 47 | + release: '13.3.Rel1' # The arm-none-eabi-gcc release to use. |
57 | 48 |
|
58 | 49 | # Get CMake into the environment |
59 | | - - name: Install cmake 3.19.1 |
60 | | - uses: lukka/get-cmake@v3.19.1 |
| 50 | + - name: Install cmake |
| 51 | + uses: lukka/get-cmake@v3.31.0 |
61 | 52 |
|
62 | 53 | # Get Ninja into the environment |
63 | 54 | - name: Install ninja-build |
64 | | - uses: seanmiddleditch/gha-setup-ninja@v3 |
| 55 | + uses: seanmiddleditch/gha-setup-ninja@v5 |
65 | 56 |
|
66 | 57 | # Prepare the build system |
67 | 58 | - name: Prepare build system |
68 | 59 | run: cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=./cmake/cortex_m${{ matrix.port }}.cmake -GNinja . |
69 | | - env: |
70 | | - PATH: "$HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH" |
71 | 60 |
|
72 | 61 | - name: Compile and link |
73 | 62 | run: cmake --build ./build |
74 | | - env: |
75 | | - PATH: "$HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH" |
76 | | - |
77 | | - |
0 commit comments