Skip to content

Commit 9f2410f

Browse files
committed
[fix]修复 workflow 报错
1 parent 1090d0a commit 9f2410f

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,9 @@ jobs:
9494
lfs: true
9595

9696
- name: Install ARM GCC Toolchain
97-
shell: pwsh
98-
run: |
99-
# 下载并解压ARM GCC工具链(使用13.2版本以支持最新的ld脚本语法)
100-
$url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip"
101-
$output = "gcc-arm-none-eabi.zip"
102-
Invoke-WebRequest -Uri $url -OutFile $output
103-
Expand-Archive -Path $output -DestinationPath "C:\gcc-arm"
104-
105-
# 添加到PATH
106-
$env:Path = "C:\gcc-arm\arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi\bin;" + $env:Path
107-
echo "C:\gcc-arm\arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
97+
uses: carlosperate/arm-none-eabi-gcc-action@v1
98+
with:
99+
release: '13.2.Rel1'
108100

109101
- name: Verify toolchain installation
110102
shell: pwsh

0 commit comments

Comments
 (0)