Skip to content

Commit aaacecf

Browse files
committed
WIP2 Windows CI
1 parent 72ce318 commit aaacecf

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/windows.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,29 @@ jobs:
5050
- name: Download and Unzip GCCs
5151
shell: powershell
5252
run: |
53-
Invoke-WebRequest -OutFile gcc-arm-none-eabi-win64-13.zip 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
54-
New-Item -Path "C:\" -Name "arm-none-eabi-13" -ItemType "Directory"
55-
Expand-Archive -Path gcc-arm-none-eabi-win64-13.zip -DestinationPath C:\arm-none-eabi-13 -Force
56-
57-
Invoke-WebRequest -OutFile gcc-arm-none-eabi-win64-14.zip https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-mingw-w64-x86_64-arm-none-eabi.zip
58-
New-Item -Path "C:\" -Name "arm-none-eabi-14" -ItemType "Directory"
59-
Expand-Archive -Path gcc-arm-none-eabi-win64-14.zip -DestinationPath C:\arm-none-eabi-14 -Force
53+
$ProgressPreference = 'SilentlyContinue'
54+
Start-Job {
55+
Set-Location $using:PWD
56+
Invoke-WebRequest -OutFile gcc-arm-none-eabi-win64-13.zip 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
57+
New-Item -Path "C:\" -Name "arm-none-eabi-13" -ItemType "Directory"
58+
Expand-Archive -Path gcc-arm-none-eabi-win64-13.zip -DestinationPath C:\arm-none-eabi-13 -Force
59+
Remove-Item gcc-arm-none-eabi-win64-13.zip
60+
}
61+
Start-Job {
62+
Set-Location $using:PWD
63+
Invoke-WebRequest -OutFile gcc-arm-none-eabi-win64-14.zip https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-mingw-w64-x86_64-arm-none-eabi.zip
64+
New-Item -Path "C:\" -Name "arm-none-eabi-14" -ItemType "Directory"
65+
Expand-Archive -Path gcc-arm-none-eabi-win64-14.zip -DestinationPath C:\arm-none-eabi-14 -Force
66+
Remove-Item gcc-arm-none-eabi-win64-14.zip
67+
}
68+
Start-Job {
69+
Set-Location $using:PWD
70+
Add-Type -Assembly "System.IO.Compression.Filesystem"
71+
Invoke-WebRequest -OutFile gcc-avr-win64.zip https://github.com/ZakKemble/avr-gcc-build/releases/download/v14.1.0-1/avr-gcc-14.1.0-x64-windows.zip
72+
[System.IO.Compression.ZipFile]::ExtractToDirectory("gcc-avr-win64.zip", "C:\")
73+
Remove-Item gcc-avr-win64.zip
74+
}
75+
Get-Job | Wait-Job
6076
6177
# No need for this anymore
6278
# dir C:\mingw64
@@ -78,8 +94,6 @@ jobs:
7894
echo "C:\arm-none-eabi-13\arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
7995
echo "C:\arm-none-eabi-14\arm-gnu-toolchain-14.2.rel1-mingw-w64-x86_64-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
8096
echo "C:\avr-gcc-14.1.0-x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
81-
rm gcc-arm-none-eabi-win64-13.zip
82-
rm gcc-arm-none-eabi-win64-14.zip
8397
8498
- name: Show Version Information
8599
if: always()

0 commit comments

Comments
 (0)