Skip to content

Commit 2a4bdaf

Browse files
committed
更新github action脚本,适应ubuntu24.04操作系统
1 parent 246861b commit 2a4bdaf

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/Build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ jobs:
1818
# 下载安装相关工具
1919
- name: ⚙️ Install Tools
2020
run: |
21-
sudo apt-get update
22-
sudo apt-get -y install python3-pip python3-setuptools
23-
sudo pip3 install --upgrade pip
24-
sudo pip3 install nrfutil
2521
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2 -O /tmp/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
2622
tar xf /tmp/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2 -C /tmp
2723
sudo cp -r /tmp/sdcc-4.0.0/* /usr/local
2824
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -O /tmp/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
2925
tar xf /tmp/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -C /tmp
3026
wget https://github.com/genokolar/nrf52_tools/raw/main/mergehex -O /tmp/mergehex
3127
sudo cp -r /tmp/mergehex /usr/local/bin/mergehex
28+
wget https://github.com/genokolar/nrf52_tools/raw/main/nrfutil-linux -O /tmp/nrfutil
29+
sudo cp -r /tmp/nrfutil /usr/local/bin/nrfutil
3230
sudo chmod 0755 /usr/local/bin/mergehex
31+
sudo chmod 0755 /usr/local/bin/nrfutil
3332
echo GNU_INSTALL_ROOT := /tmp/gcc-arm-none-eabi-9-2019-q4-major/bin/>template/Makefile.posix
3433
echo GNU_VERSION := 9.2.1>>template/Makefile.posix
3534
echo GNU_PREFIX := arm-none-eabi>>template/Makefile.posix

.github/workflows/Release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@ jobs:
1717
# 下载安装相关工具
1818
- name: ⚙️ Install Tools
1919
run: |
20-
sudo apt-get update
21-
sudo apt-get -y install python3-pip python3-setuptools
22-
sudo pip3 install --upgrade pip
23-
sudo pip3 install nrfutil
2420
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.0.0/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2 -O /tmp/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2
2521
tar xf /tmp/sdcc-4.0.0-amd64-unknown-linux2.5.tar.bz2 -C /tmp
2622
sudo cp -r /tmp/sdcc-4.0.0/* /usr/local
2723
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -O /tmp/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
2824
tar xf /tmp/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -C /tmp
2925
wget https://github.com/genokolar/nrf52_tools/raw/main/mergehex -O /tmp/mergehex
3026
sudo cp -r /tmp/mergehex /usr/local/bin/mergehex
27+
wget https://github.com/genokolar/nrf52_tools/raw/main/nrfutil-linux -O /tmp/nrfutil
28+
sudo cp -r /tmp/nrfutil /usr/local/bin/nrfutil
3129
sudo chmod 0755 /usr/local/bin/mergehex
30+
sudo chmod 0755 /usr/local/bin/nrfutil
3231
echo GNU_INSTALL_ROOT := /tmp/gcc-arm-none-eabi-9-2019-q4-major/bin/>template/Makefile.posix
3332
echo GNU_VERSION := 9.2.1>>template/Makefile.posix
3433
echo GNU_PREFIX := arm-none-eabi>>template/Makefile.posix

0 commit comments

Comments
 (0)