Skip to content

Commit

Permalink
Updated toolchain to 11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentiWorkLearning committed Apr 2, 2022
1 parent 76166ea commit 6d6c662
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@ jobs:
id: cache-gcc-toolchain
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/gcc_toolchain_10_3
key: ${{runner.os}}-toolchain-v10_3
path: ${{ github.workspace }}/gcc_toolchain_11_2
key: ${{runner.os}}-toolchain-v11_2

- name: Get the latest arm-gcc-none-eabi-gcc
uses: wei/wget@v1
if: steps.cache-gcc-toolchain.outputs.cache-hit != 'true'
id: download-arm-gcc
with:
args: "https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2"
args: "https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz"

- name: Unpack arm-gcc-compiler
if: steps.cache-gcc-toolchain.outputs.cache-hit != 'true'
run: |
mkdir gcc_toolchain_10_3
tar -xjf gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2 --directory ${{ github.workspace }}/gcc_toolchain_10_3
mkdir gcc_toolchain_11_2
tar -xJf gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz --directory ${{ github.workspace }}/gcc_toolchain_11_2
- name: Cache NordicSDK
id: cache-nordic-sdk
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: ${{ github.workspace }}/Firmware/CMakeLists.txt
cmakeBuildType: Debug
cmakeAppendedArgs: '-DTARGET_PLATFORM:STRING="ARM_CORTEX" -DEXECUTE_MCU_FLASHING=OFF -DCMAKE_BUILD_TYPE:STRING=Debug -DREDUCE_LVGL_BINARY_SIZE=ON -DPACKAGE_TESTS=OFF -DNRF5_SDK_PATH=${{ github.workspace }}/Nrf52SDKv16_0 -DARM_NONE_EABI_TOOLCHAIN_PATH:PATH=${{ github.workspace }}/gcc_toolchain_10_3/gcc-arm-none-eabi-10.3-2021.07'
cmakeAppendedArgs: '-DTARGET_PLATFORM:STRING="ARM_CORTEX" -DEXECUTE_MCU_FLASHING=OFF -DCMAKE_BUILD_TYPE:STRING=Debug -DREDUCE_LVGL_BINARY_SIZE=ON -DPACKAGE_TESTS=OFF -DNRF5_SDK_PATH=${{ github.workspace }}/Nrf52SDKv16_0 -DARM_NONE_EABI_TOOLCHAIN_PATH:PATH=${{ github.workspace }}/gcc_toolchain_11_2/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi'
buildWithCMake: true

# # Runs a set of commands using the runners shell
Expand Down
2 changes: 1 addition & 1 deletion Firmware/cmake/base.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if( NOT ARM_NONE_EABI_TOOLCHAIN_PATH )
#set(ARM_NONE_EABI_TOOLCHAIN_PATH "C:/gcc_none_eabi_9_2_1")
set(ARM_NONE_EABI_TOOLCHAIN_PATH "C:/gcc_arm_none_eabi_10_3")
set(ARM_NONE_EABI_TOOLCHAIN_PATH "C:/gcc_arm_none_eabi_11_2")
message(STATUS "No ARM_NONE_EABI_TOOLCHAIN_PATH specified, using default: " ${ARM_NONE_EABI_TOOLCHAIN_PATH})
else()
message(STATUS " ARM_NONE_EABI_TOOLCHAIN_PATH specified using: " ${ARM_NONE_EABI_TOOLCHAIN_PATH})
Expand Down

0 comments on commit 6d6c662

Please sign in to comment.