Skip to content

Commit 597dc6f

Browse files
authored
Merge pull request #268 from adafruit/action-gcc
carlosperate/arm-none-eabi-gcc-action
2 parents e75aa4f + 9e396b0 commit 597dc6f

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

.github/workflows/githubci.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,10 @@ jobs:
7474
repository: hathach/linkermap
7575
path: linkermap
7676

77-
- name: Set Toolchain URL
78-
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz
79-
80-
- name: Cache Toolchain
81-
uses: actions/cache@v3
82-
id: cache-toolchain
77+
- name: Install ARM GCC
78+
uses: carlosperate/arm-none-eabi-gcc-action@v1
8379
with:
84-
path: ~/cache/
85-
key: ${{ runner.os }}-22-05-17-${{ env.TOOLCHAIN_URL }}
86-
87-
- name: Install Toolchain
88-
if: steps.cache-toolchain.outputs.cache-hit != 'true'
89-
run: |
90-
mkdir -p ~/cache/toolchain
91-
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
92-
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
93-
94-
- name: Set Toolchain Path
95-
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
80+
release: '10-2020-q4'
9681

9782
- name: Install Tools
9883
run: |
@@ -101,6 +86,7 @@ jobs:
10186
10287
- name: Build
10388
run: |
89+
arm-none-eabi-gcc --version
10490
make BOARD=${{ matrix.board }} all
10591
make BOARD=${{ matrix.board }} copy-artifact
10692

0 commit comments

Comments
 (0)