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