From 6ee2bc6f1bcd2ed4584a2dead3bc291c3f4137c9 Mon Sep 17 00:00:00 2001 From: nil4 Date: Tue, 5 Nov 2024 10:35:36 +0100 Subject: [PATCH] [win] setup `arm64` tools Hopefully enough for checkout and `dotnet` SDK --- .github/workflows/x-win.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/x-win.yml b/.github/workflows/x-win.yml index b1d36852..b9a58b07 100644 --- a/.github/workflows/x-win.yml +++ b/.github/workflows/x-win.yml @@ -26,9 +26,6 @@ jobs: - name: "Ubuntu x64" os: ubuntu-latest - # - X64 - # - linux - # - Ubuntu env: OS: "linux" NUGET_RID: "linux-x64" @@ -51,7 +48,6 @@ jobs: env: OS: "windows" NUGET_RID: "win-arm64" - NUGET_PACK_DOTNET_LIB: "1" runs-on: "${{ matrix.os }}" @@ -69,6 +65,28 @@ jobs: SWIFT_VERSION: "6.0.2" steps: + - name: setup tools (win-arm64) + if: "success() && matrix.env.NUGET_RID == 'win-arm64'" + shell: powershell + run: | + # Install choco + Set-ExecutionPolicy Bypass -Scope Process -Force + [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 # Enable TLS1.2 + Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) + "C:\ProgramData\Chocolatey\bin" | Out-File -FilePath $env:GITHUB_PATH -Append -Encoding utf8 + + # Install pwsh + choco install -y --no-progress powershell-core + "C:\Program Files\PowerShell\7" | Out-File -FilePath $env:GITHUB_PATH -Append -Encoding utf8 + + # Install git + choco install -y --no-progress git + "C:\Program Files\Git\cmd" | Out-File -FilePath $env:GITHUB_PATH -Append -Encoding utf8 + + # Install dotnet + Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://dot.net/v1/dotnet-install.ps1')) + "C:\Program Files\dotnet" | Out-File -FilePath $env:GITHUB_PATH -Append -Encoding utf8 + - name: checkout uses: actions/checkout@v4