Skip to content

Commit 2524388

Browse files
authored
[action] cache for test Update bsp_buildings.yml
1 parent 58e587b commit 2524388

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/bsp_buildings.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,14 @@ jobs:
420420
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
421421
echo "RTT_CC=gcc" >> $GITHUB_ENV
422422
echo "export PATH=~/.env/tools/scripts:$PATH" > ~/.env/env.sh
423-
423+
- name: Cache GCC Arm Toolchain
424+
id: cache-gcc-arm
425+
uses: actions/cache@v4
426+
with:
427+
path: /opt/gcc-arm-none-eabi-10-2020-q4-major
428+
key: gcc-arm-none-eabi-10-2020-q4-major
424429
- name: Install Arm ToolChains
425-
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() }}
430+
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() && (steps.cache-gcc-arm.outputs.cache-hit != 'true') }}
426431
shell: bash
427432
run: |
428433
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2

0 commit comments

Comments
 (0)