Skip to content

Commit fda2d14

Browse files
committed
github: update to ARM Embedded GCC 9
GCC 9 is fairly stable now. Also this is first version that is signed and notarized for macOS making it the only version that runs on macOS. Previous builds of the toolchain were built with -O0, so this version can compile twice as fast and also reduces firmware size a bit.
1 parent c065aab commit fda2d14

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ jobs:
162162
id: check-cache
163163
uses: actions/cache@v1
164164
with:
165-
path: ${{ runner.tool_cache }}/gcc-arm
166-
key: gcc-arm
165+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
166+
key: gcc-arm-9-2020-q2
167167
- name: Download
168168
if: steps.check-cache.outputs.cache-hit != 'true'
169-
uses: fiam/arm-none-eabi-gcc@v1
169+
uses: fiam/arm-none-eabi-gcc@v1.0.2
170170
with:
171-
release: '8-2019-q3'
172-
directory: ${{ runner.tool_cache }}/gcc-arm
171+
release: '9-2020-q2'
172+
directory: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
173173

174174
cityhub_firmware:
175175
name: cityhub firmware
@@ -179,10 +179,10 @@ jobs:
179179
- name: Install cross-compiler
180180
uses: actions/cache@v1
181181
with:
182-
path: ${{ runner.tool_cache }}/gcc-arm
183-
key: gcc-arm
182+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
183+
key: gcc-arm-9-2020-q2
184184
- name: Add cross-compiler to path
185-
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm/bin
185+
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin
186186
- name: Checkout repo
187187
uses: actions/checkout@v2
188188
with:
@@ -223,10 +223,10 @@ jobs:
223223
- name: Install cross-compiler
224224
uses: actions/cache@v1
225225
with:
226-
path: ${{ runner.tool_cache }}/gcc-arm
227-
key: gcc-arm
226+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
227+
key: gcc-arm-9-2020-q2
228228
- name: Add cross-compiler to path
229-
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm/bin
229+
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin
230230
- name: Checkout repo
231231
uses: actions/checkout@v2
232232
with:
@@ -267,10 +267,10 @@ jobs:
267267
- name: Install cross-compiler
268268
uses: actions/cache@v1
269269
with:
270-
path: ${{ runner.tool_cache }}/gcc-arm
271-
key: gcc-arm
270+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
271+
key: gcc-arm-9-2020-q2
272272
- name: Add cross-compiler to path
273-
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm/bin
273+
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin
274274
- name: Checkout repo
275275
uses: actions/checkout@v2
276276
with:
@@ -311,10 +311,10 @@ jobs:
311311
- name: Install cross-compiler
312312
uses: actions/cache@v1
313313
with:
314-
path: ${{ runner.tool_cache }}/gcc-arm
315-
key: gcc-arm
314+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
315+
key: gcc-arm-9-2020-q2
316316
- name: Add cross-compiler to path
317-
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm/bin
317+
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin
318318
- name: Checkout repo
319319
uses: actions/checkout@v2
320320
with:
@@ -355,10 +355,10 @@ jobs:
355355
- name: Install cross-compiler
356356
uses: actions/cache@v1
357357
with:
358-
path: ${{ runner.tool_cache }}/gcc-arm
359-
key: gcc-arm
358+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
359+
key: gcc-arm-9-2020-q2
360360
- name: Add cross-compiler to path
361-
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm/bin
361+
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin
362362
- name: Checkout repo
363363
uses: actions/checkout@v2
364364
with:
@@ -387,10 +387,10 @@ jobs:
387387
- name: Install cross-compiler
388388
uses: actions/cache@v1
389389
with:
390-
path: ${{ runner.tool_cache }}/gcc-arm
391-
key: gcc-arm
390+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
391+
key: gcc-arm-9-2020-q2
392392
- name: Add cross-compiler to path
393-
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm/bin
393+
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin
394394
- name: Checkout repo
395395
uses: actions/checkout@v2
396396
with:

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
id: check-cache
1818
uses: actions/cache@v1
1919
with:
20-
path: ${{ runner.tool_cache }}/gcc-arm
21-
key: gcc-arm
20+
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
21+
key: gcc-arm-9-2020-q2
2222
- name: Download
2323
if: steps.check-cache.outputs.cache-hit != 'true'
24-
uses: fiam/arm-none-eabi-gcc@v1
24+
uses: fiam/arm-none-eabi-gcc@v1.0.2
2525
with:
26-
release: '8-2019-q3'
27-
directory: ${{ runner.tool_cache }}/gcc-arm
26+
release: '9-2020-q2'
27+
directory: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
2828
- name: Add cross-compiler to path
29-
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm/bin
29+
run: echo ::add-path::${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin
3030
- name: Checkout code
3131
uses: actions/checkout@v2
3232
with:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is the recommended development environment used by the Pybricks maintainers
1212
- [Python][python] v3.8.x
1313
- [Poetry][poetry] v1.x
1414
- [Uncrustify][uncrustify] v0.71.x
15-
- [GNU ARM Embedded Toolchain][arm-gcc] v8-2019-q3
15+
- [GNU ARM Embedded Toolchain][arm-gcc] v9-2020-q2
1616
- [GNU GCC][gcc] for host operating system
1717
- [GNU Make][make]
1818

0 commit comments

Comments
 (0)