build: get arm64 windows closer to working

This commit is contained in:
Samuel Attard
2024-10-03 10:30:06 -07:00
parent dc1dc699de
commit 349d25b04d

View File

@@ -57,9 +57,20 @@ jobs:
ARTIFACT_KEY: ${{ matrix.build-type }}_${{ inputs.target-arch }}
steps:
- name: Fix node20 on arm32 runners
if: ${{ inputs.target-arch == 'arm' }}
if: ${{ inputs.target-arch == 'arm' && inputs.target-platform == 'linux' }}
run: |
cp $(which node) /mnt/runner-externals/node20/bin/
- name: Install Git on Windows arm64 runners
if: ${{ inputs.target-arch == 'arm64' && inputs.target-platform == 'windows' }}
shell: powershell
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install git.install --params "'/GitAndUnixToolsOnPath'" -y
choco install -y --no-progress git
choco install -y --force nodejs --version=20.11.0
echo "C:\Program Files\Git\cmd" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Add TCC permissions on macOS
if: ${{ inputs.target-platform == 'macos' }}
run: |