mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 12:34:48 +00:00
Updated GH actions to cache arm-none-eabi
This commit is contained in:
8
.github/workflows/ci_cortex_m4.yml
vendored
8
.github/workflows/ci_cortex_m4.yml
vendored
@@ -26,9 +26,7 @@ jobs:
|
|||||||
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
# - name: Install build-essential
|
# Store the arm compilers in the cache to speed up builds
|
||||||
# run: sudo apt-get install build-essential
|
|
||||||
|
|
||||||
- name: Cache arm-none-eabi-gcc tools
|
- name: Cache arm-none-eabi-gcc tools
|
||||||
id: cache-arm-gcc
|
id: cache-arm-gcc
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
@@ -52,10 +50,6 @@ jobs:
|
|||||||
- name: Install ninja-build
|
- name: Install ninja-build
|
||||||
uses: seanmiddleditch/gha-setup-ninja@v1
|
uses: seanmiddleditch/gha-setup-ninja@v1
|
||||||
|
|
||||||
- name: Update $PATH if using cache
|
|
||||||
if: steps.cache-arm-gcc.outputs.cache-hit == 'true'
|
|
||||||
run: echo "::addPath::$HOME/arm-none-eabi-gcc-9-2019-q4/bin"
|
|
||||||
|
|
||||||
# Prepare the build system
|
# Prepare the build system
|
||||||
- name: Prepare build system
|
- name: Prepare build system
|
||||||
run: cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=./cmake/cortex_m4.cmake -GNinja .
|
run: cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=./cmake/cortex_m4.cmake -GNinja .
|
||||||
|
|||||||
15
.github/workflows/ci_cortex_m7.yml
vendored
15
.github/workflows/ci_cortex_m7.yml
vendored
@@ -26,14 +26,21 @@ jobs:
|
|||||||
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
# - name: Install build-essential
|
# Store the arm compilers in the cache to speed up builds
|
||||||
# run: sudo apt-get install build-essential
|
- 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
|
# Get the arm-non-eabi-gcc toolchain
|
||||||
- name: Install arm-none-eabi-gcc
|
- name: Install arm-none-eabi-gcc
|
||||||
uses: fiam/arm-none-eabi-gcc@v1
|
uses: fiam/arm-none-eabi-gcc@v1
|
||||||
|
if: steps.cache-arm-gcc.outputs.cache-hit != 'true'
|
||||||
with:
|
with:
|
||||||
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
|
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
|
||||||
|
directory: $HOME/arm-none-eabi-gcc-9-2019-q4
|
||||||
|
|
||||||
# Get CMake into the environment
|
# Get CMake into the environment
|
||||||
- name: Install cmake 3.17.1
|
- name: Install cmake 3.17.1
|
||||||
@@ -46,8 +53,12 @@ jobs:
|
|||||||
# Prepare the build system
|
# Prepare the build system
|
||||||
- name: Prepare 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_m7.cmake -GNinja .
|
||||||
|
env:
|
||||||
|
PATH: "$HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH"
|
||||||
|
|
||||||
- name: Compile and link
|
- name: Compile and link
|
||||||
run: cmake --build ./build
|
run: cmake --build ./build
|
||||||
|
env:
|
||||||
|
PATH: "$HOME/arm-none-eabi-gcc-9-2019-q4/bin:$PATH"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user