@@ -81,10 +81,12 @@ jobs:
81
81
include : ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
82
82
steps :
83
83
- if : contains(matrix.os, 'windows')
84
- uses : msys2/setup-msys2@v2.22 .0
84
+ uses : msys2/setup-msys2@v2.21 .0
85
85
with :
86
- # i686 jobs use mingw32. x86_64 and cross-compile jobs use mingw64.
87
- msystem : ${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}
86
+ # i686 jobs use mingw32.
87
+ # aarch64 runners use clangarm64.
88
+ # x86_64 and cross-compile jobs use mingw64.
89
+ msystem : ${{ contains(matrix.name, 'i686') && 'mingw32' || contains(matrix.os, 'arm64') && 'clangarm64' || 'mingw64' }}
88
90
# don't try to download updates for already installed packages
89
91
update : false
90
92
# don't try to use the msys that comes built-in to the github runner,
@@ -98,8 +100,32 @@ jobs:
98
100
dos2unix
99
101
diffutils
100
102
103
+ - if : contains(matrix.os, 'windows') && contains(matrix.os, 'arm64')
104
+ name : install Git on Windows Arm64
105
+ shell : powershell
106
+ run : |
107
+ Invoke-WebRequest -Uri https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/Git-2.45.2-64-bit.exe -OutFile '${{ runner.temp }}\gitinstaller.exe'
108
+ &'${{ runner.temp }}\gitinstaller.exe' /SP- /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /o:PathOption=CmdTools /o:BashTerminalOption=ConHost /o:EnableSymlinks=Enabled
109
+ $currentPath = [System.Environment]::GetEnvironmentVariable("PATH", "Machine")
110
+ $newPath = 'C:\Program Files\Git\bin;' + $currentPath
111
+ [Environment]::SetEnvironmentVariable("PATH", $newPath, "Machine")
112
+
113
+ - if : contains(matrix.os, 'windows') && contains(matrix.os, 'arm64')
114
+ name : add git to bath PATH
115
+ run : export PATH="/c/Program Files/Git/bin":$PATH
116
+
117
+ # - if: contains(matrix.os, 'windows') && contains(matrix.os, 'arm64')
118
+ # name: install VS on Windows Arm64
119
+ # shell: powershell
120
+ # run: |
121
+ # Invoke-WebRequest -Uri https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile '${{ runner.temp }}\vs_buildtools.exe'
122
+ # cmd /c "${{ runner.temp }}\vs_buildtools.exe --quiet --norestart --wait --nocache --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621"
123
+
101
124
- name : disable git crlf conversion
102
- run : git config --global core.autocrlf false
125
+ run : |
126
+ echo $PATH
127
+ ls "/c/Program Files/Git/bin"
128
+ git config --global core.autocrlf false
103
129
104
130
- name : checkout the source code
105
131
uses : actions/checkout@v4
0 commit comments