Skip to content

Commit a64c0c1

Browse files
committed
[skip ci] workflow test
1 parent e1741e2 commit a64c0c1

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Setup ARM GUN toolchain with S3 cache
2+
description: Install and restore ARM GUN toolchain using S3 cache
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Cache toolchain
8+
uses: runs-on/cache@v4
9+
id: cache-toolchain
10+
with:
11+
path: .cp_tools
12+
key: setup-arm-gnu-toolchain-${{ runner.os }}-${{ runner.arch }}-14.2.rel1
13+
restore-keys: |
14+
setup-arm-gnu-toolchain-${{ runner.os }}-${{ runner.arch }}-
15+
16+
- name: Set up toolchain
17+
if: ${{ !steps.cache-toolchain.outputs.cache-hit }}
18+
shell: bash
19+
run: |
20+
wget https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz -O $RUNNER_TEMP/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
21+
tar xJ --warning=no-unknown-keyword --overwrite -C $RUNNER_TEMP -f $RUNNER_TEMP/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
22+
mv $RUNNER_TEMP/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi ~/.local
23+
24+
- name: Activate toolchain
25+
run: |
26+
echo >> $GITHUB_PATH "~/.local/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/bin"
27+
shell: bash

.github/actions/deps/external/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ runs:
1616
inputs.port != 'litex' &&
1717
inputs.port != 'espressif' &&
1818
inputs.port != 'zephyr-cp'
19-
uses: carlosperate/arm-none-eabi-gcc-action@v1
20-
with:
21-
# When changing this update what Windows grabs too!
22-
release: '14.2.Rel1'
19+
uses: ./.github/actions/deps/arm-gnu-toolchain
2320

2421
# espressif
2522
- name: Get espressif toolchain

0 commit comments

Comments
 (0)