Skip to content

Commit c6078d3

Browse files
committed
Install ARM toolchain v15.2 from official source
Replace apt-installed gcc-arm-none-eabi with ARM GNU Toolchain 15.2.rel1 downloaded directly from developer.arm.com to get a more recent and controlled toolchain version.
1 parent d6e9312 commit c6078d3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ jobs:
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: '3.10'
23-
- name: Install arm-none-eabi
24-
run: sudo apt install gcc-arm-none-eabi
23+
- name: Install arm-none-eabi v15
24+
run: |
25+
set -e
26+
TOOLCHAIN_URL="https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz"
27+
TOOLCHAIN_DIR="/opt/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi"
28+
sudo mkdir -p /opt
29+
wget -qO /tmp/arm-toolchain.tar.xz "$TOOLCHAIN_URL"
30+
sudo tar -xJf /tmp/arm-toolchain.tar.xz -C /opt
31+
echo "$TOOLCHAIN_DIR/bin" >> "$GITHUB_PATH"
2532
- name: version
2633
run: arm-none-eabi-g++ --version
2734
- name: make bootloader-tftp

0 commit comments

Comments
 (0)