Skip to content

Commit

Permalink
Revert ".github: Revert update to GCC 10"
Browse files Browse the repository at this point in the history
This reverts commit 4ab8f11.

Issue with dual boot has been fixed.
  • Loading branch information
dlech committed Feb 2, 2021
1 parent 3ae2842 commit 935f7f3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,14 @@ jobs:
id: check-cache
uses: actions/cache@v2
with:
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
key: gcc-arm-9-2020-q2
path: ${{ runner.tool_cache }}/gcc-arm-10-2020-q4
key: gcc-arm-10-2020-q4
- name: Download
if: steps.check-cache.outputs.cache-hit != 'true'
uses: fiam/arm-none-eabi-gcc@v1.0.3
uses: dlech/arm-none-eabi-gcc@master
with:
release: '9-2020-q2'
directory: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
release: '10-2020-q4'
directory: ${{ runner.tool_cache }}/gcc-arm-10-2020-q4

firmware:
name: firmware
Expand All @@ -178,10 +178,10 @@ jobs:
- name: Install cross-compiler
uses: actions/cache@v2
with:
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
key: gcc-arm-9-2020-q2
path: ${{ runner.tool_cache }}/gcc-arm-10-2020-q4
key: gcc-arm-10-2020-q4
- name: Add cross-compiler to path
run: echo ${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin >> $GITHUB_PATH
run: echo ${{ runner.tool_cache }}/gcc-arm-10-2020-q4/bin >> $GITHUB_PATH
- name: Checkout repo
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -243,10 +243,10 @@ jobs:
- name: Install cross-compiler
uses: actions/cache@v2
with:
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
key: gcc-arm-9-2020-q2
path: ${{ runner.tool_cache }}/gcc-arm-10-2020-q4
key: gcc-arm-10-2020-q4
- name: Add cross-compiler to path
run: echo ${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin >> $GITHUB_PATH
run: echo ${{ runner.tool_cache }}/gcc-arm-10-2020-q4/bin >> $GITHUB_PATH
- name: Checkout repo
uses: actions/checkout@v2
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
id: check-cache
uses: actions/cache@v2
with:
path: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
key: gcc-arm-9-2020-q2
path: ${{ runner.tool_cache }}/gcc-arm-10-2020-q4
key: gcc-arm-10-2020-q4
- name: Download
if: steps.check-cache.outputs.cache-hit != 'true'
uses: fiam/arm-none-eabi-gcc@v1.0.3
uses: dlech/arm-none-eabi-gcc@master
with:
release: '9-2020-q2'
directory: ${{ runner.tool_cache }}/gcc-arm-9-2020-q2
release: '10-2020-q4'
directory: ${{ runner.tool_cache }}/gcc-arm-10-2020-q4
- name: Add cross-compiler to path
run: echo ${{ runner.tool_cache }}/gcc-arm-9-2020-q2/bin >> $GITHUB_PATH
run: echo ${{ runner.tool_cache }}/gcc-arm-10-2020-q4/bin >> $GITHUB_PATH
- name: Checkout code
uses: actions/checkout@v2
with:
Expand Down
16 changes: 8 additions & 8 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//
// Note: to correctly find the cross compiler if it isn't in $PATH, add:
//
// export GCC_9_ARM_NONE_EABI_BIN=/path/to/gcc-9-arm-none-eabi/bin/
// export GCC_10_ARM_NONE_EABI_BIN=/path/to/gcc-10-arm-none-eabi/bin/
//
// in .bashrc or .zshrc (trailing slash is required), then restart VS Code.

{
"env": {
"gcc9ArmNoneEabi": "${env:GCC_9_ARM_NONE_EABI_BIN}arm-none-eabi-gcc"
"gcc10ArmNoneEabi": "${env:GCC_10_ARM_NONE_EABI_BIN}arm-none-eabi-gcc"
},
"configurations": [
{
Expand Down Expand Up @@ -41,7 +41,7 @@
"USE_FULL_LL_DRIVER",
"FIXMATH_NO_CTYPE"
],
"compilerPath": "${gcc9ArmNoneEabi}",
"compilerPath": "${gcc10ArmNoneEabi}",
"compilerArgs": [
"-Wall",
"-Werror",
Expand Down Expand Up @@ -81,7 +81,7 @@
"USE_FULL_LL_DRIVER",
"FIXMATH_NO_CTYPE"
],
"compilerPath": "${gcc9ArmNoneEabi}",
"compilerPath": "${gcc10ArmNoneEabi}",
"compilerArgs": [
"-Wall",
"-Werror",
Expand Down Expand Up @@ -125,7 +125,7 @@
"USE_FULL_LL_DRIVER",
"FIXMATH_NO_CTYPE"
],
"compilerPath": "${gcc9ArmNoneEabi}",
"compilerPath": "${gcc10ArmNoneEabi}",
"compilerArgs": [
"-Wall",
"-Werror",
Expand Down Expand Up @@ -173,7 +173,7 @@
"USE_FULL_LL_DRIVER",
"FIXMATH_NO_CTYPE"
],
"compilerPath": "${gcc9ArmNoneEabi}",
"compilerPath": "${gcc10ArmNoneEabi}",
"compilerArgs": [
"-Wall",
"-Werror",
Expand Down Expand Up @@ -209,7 +209,7 @@
"MICROPY_ROM_TEXT_COMPRESSION",
"FIXMATH_NO_CTYPE"
],
"compilerPath": "${gcc9ArmNoneEabi}",
"compilerPath": "${gcc10ArmNoneEabi}",
"compilerArgs": [
"-mthumb",
"-mtune=arm7tdmi",
Expand Down Expand Up @@ -242,7 +242,7 @@
"STM32_HAL_H=<stm32f4xx_hal.h>",
"FIXMATH_NO_CTYPE"
],
"compilerPath": "${gcc9ArmNoneEabi}",
"compilerPath": "${gcc10ArmNoneEabi}",
"compilerArgs": [
"-Wall",
"-Werror",
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is the recommended development environment used by the Pybricks maintainers
- [Python][python] v3.8.x
- [Poetry][poetry] v1.x
- [Uncrustify][uncrustify] v0.71.x
- [GNU ARM Embedded Toolchain][arm-gcc] v9-2020-q2
- [GNU ARM Embedded Toolchain][arm-gcc] v10-2020-q4
- [GNU GCC][gcc] for host operating system
- [GNU Make][make]

Expand Down Expand Up @@ -91,7 +91,7 @@ Cygwin and the [GNU ARM Embedded Toolchain][arm-gcc] need to be added to the
rather than globally via *System Properties*. For example using PowerShell:

```powershell
$env:PATH="C:\cygwin64\bin;C:\Program Files (x86)\GNU Arm Embedded Toolchain\9 2020-q2-update\bin;$env:PATH"
$env:PATH="C:\cygwin64\bin;C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin;$env:PATH"
```

[cygwin]: https://www.cygwin.com/
Expand Down

0 comments on commit 935f7f3

Please sign in to comment.