Skip to content

Commit 2e15110

Browse files
committed
WIP Windows CI
1 parent 75d93aa commit 2e15110

File tree

1 file changed

+30
-25
lines changed

1 file changed

+30
-25
lines changed

.github/workflows/windows.yml

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,43 +40,48 @@ jobs:
4040
# Unzip -zipfile "gcc-arm-none-eabi-win64.zip" -outdir "C:\"
4141
# is not faster than
4242
# Expand-Archive -Path gcc-arm-none-eabi-win64.zip -DestinationPath C:\ -Force
43+
# GCC 12 comes with the Windows image now
44+
# Start-Job {
45+
# Set-Location $using:PWD
46+
# Add-Type -Assembly "System.IO.Compression.Filesystem"
47+
# Invoke-WebRequest -OutFile gcc-win64.zip https://github.com/brechtsanders/winlibs_mingw/releases/download/14.2.0posix-19.1.7-12.0.0-msvcrt-r3/winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3.zip
48+
# [System.IO.Compression.ZipFile]::ExtractToDirectory("gcc-win64.zip", "C:\")
49+
# }
4350
- name: Download and Unzip GCCs
4451
shell: powershell
4552
run: |
46-
$ProgressPreference = 'SilentlyContinue'
47-
Start-Job {
48-
Set-Location $using:PWD
49-
Add-Type -Assembly "System.IO.Compression.Filesystem"
50-
Invoke-WebRequest -OutFile gcc-win64.zip https://github.com/brechtsanders/winlibs_mingw/releases/download/14.2.0posix-19.1.7-12.0.0-msvcrt-r3/winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3.zip
51-
[System.IO.Compression.ZipFile]::ExtractToDirectory("gcc-win64.zip", "C:\")
52-
}
53-
Start-Job {
54-
Set-Location $using:PWD
55-
Invoke-WebRequest -OutFile gcc-arm-none-eabi-win64.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
56-
Expand-Archive -Path gcc-arm-none-eabi-win64.zip -DestinationPath C:\ -Force
57-
}
58-
Start-Job {
59-
Set-Location $using:PWD
60-
Add-Type -Assembly "System.IO.Compression.Filesystem"
61-
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
62-
[System.IO.Compression.ZipFile]::ExtractToDirectory("gcc-avr-win64.zip", "C:\")
63-
}
64-
Get-Job | Wait-Job
53+
Set-Location $using:PWD
54+
55+
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-x86_64-arm-none-eabi.zip
56+
New-Item -Path "C:\" -Name "arm-none-eabi-13" -ItemType "Directory"
57+
Expand-Archive -Path gcc-arm-none-eabi-win64-13.zip -DestinationPath C:\arm-none-eabi-13 -PassThru
58+
59+
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
60+
New-Item -Path "C:\" -Name "arm-none-eabi-14" -ItemType "Directory"
61+
Expand-Archive -Path gcc-arm-none-eabi-win64-14.zip -DestinationPath C:\arm-none-eabi-14 -PassThru
6562
63+
# No need for this anymore
64+
# dir C:\mingw64
65+
# dir C:\mingw64\bin
66+
# echo "C:\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
6667
- name: Install GCCs
6768
if: always()
6869
shell: powershell
6970
run: |
7071
dir C:\
71-
dir C:\mingw64
72-
dir C:\mingw64\bin
73-
dir C:\arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi
72+
dir C:\arm-none-eabi-13\
73+
dir C:\arm-none-eabi-13\arm-gnu-toolchain-13.2.rel1-mingw-w64-x86_64-arm-none-eabi
74+
dir C:\arm-none-eabi-13\arm-gnu-toolchain-13.2.rel1-mingw-w64-x86_64-arm-none-eabi\bin
75+
dir C:\arm-none-eabi-14\
76+
dir C:\arm-none-eabi-14\arm-gnu-toolchain-14.2.rel1-mingw-w64-x86_64-arm-none-eabi
77+
dir C:\arm-none-eabi-14\arm-gnu-toolchain-14.2.rel1-mingw-w64-x86_64-arm-none-eabi\bin
7478
dir C:\avr-gcc-14.1.0-x64-windows
7579
dir C:\avr-gcc-14.1.0-x64-windows\bin
76-
echo "C:\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
77-
echo "C:\arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
80+
echo "C:\arm-none-eabi-13\arm-gnu-toolchain-13.2.rel1-mingw-w64-x86_64-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
81+
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
7882
echo "C:\avr-gcc-14.1.0-x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
79-
rm gcc-arm-none-eabi-win64.zip
83+
rm gcc-arm-none-eabi-win64-13.zip
84+
rm gcc-arm-none-eabi-win64-14.zip
8085
8186
- name: Show Version Information
8287
if: always()

0 commit comments

Comments
 (0)