Skip to content

Commit 1e00fe7

Browse files
committed
use action gcc
1 parent 8fe9022 commit 1e00fe7

File tree

1 file changed

+9
-39
lines changed

1 file changed

+9
-39
lines changed

.github/workflows/build_arm.yml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- 'xmc4000'
6666
steps:
6767
- name: Setup Python
68-
uses: actions/setup-python@v2
68+
uses: actions/setup-python@v3
6969

7070
- name: Checkout TinyUSB
7171
uses: actions/checkout@v3
@@ -79,32 +79,17 @@ jobs:
7979
repository: hathach/linkermap
8080
path: linkermap
8181

82-
- name: Checkout pico-sdk
82+
- name: Checkout pico-sdk for rp2040
8383
if: matrix.family == 'rp2040'
8484
run: |
8585
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
8686
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
8787
git submodule update --init hw/mcu/raspberry_pi/Pico-PIO-USB
8888
89-
- name: Set Toolchain URL
90-
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
91-
92-
- name: Cache Toolchain
93-
uses: actions/cache@v2
94-
id: cache-toolchain
89+
- name: Install ARM GCC
90+
uses: carlosperate/arm-none-eabi-gcc-action@v1
9591
with:
96-
path: ~/cache/
97-
key: ${{ runner.os }}-21-03-04-${{ env.TOOLCHAIN_URL }}
98-
99-
- name: Install Toolchain
100-
if: steps.cache-toolchain.outputs.cache-hit != 'true'
101-
run: |
102-
mkdir -p ~/cache/toolchain
103-
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
104-
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
105-
106-
- name: Set Toolchain Path
107-
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
92+
release: '11.2-2022.02'
10893

10994
- name: Build
11095
run: python3 tools/build_family.py ${{ matrix.family }}
@@ -135,33 +120,18 @@ jobs:
135120

136121
steps:
137122
- name: Setup Python
138-
uses: actions/setup-python@v2
123+
uses: actions/setup-python@v3
139124

140125
- name: Checkout TinyUSB
141126
uses: actions/checkout@v3
142127

143128
- name: Checkout common submodules in lib
144129
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
145130

146-
- name: Set Toolchain URL
147-
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
148-
149-
- name: Cache Toolchain
150-
uses: actions/cache@v2
151-
id: cache-toolchain
131+
- name: Install ARM GCC
132+
uses: carlosperate/arm-none-eabi-gcc-action@v1
152133
with:
153-
path: ~/cache/
154-
key: ${{ runner.os }}-21-03-04-${{ env.TOOLCHAIN_URL }}
155-
156-
- name: Install Toolchain
157-
if: steps.cache-toolchain.outputs.cache-hit != 'true'
158-
run: |
159-
mkdir -p ~/cache/toolchain
160-
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
161-
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
162-
163-
- name: Set Toolchain Path
164-
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
134+
release: '11.2-2022.02'
165135

166136
- name: Build
167137
run: python3 tools/build_board.py ${{ matrix.example }}

0 commit comments

Comments
 (0)