diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c81aaef..1e0028e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,8 +22,7 @@ concurrency: jobs: windows_build: - name: Windows Build (vcpkg / ${{ matrix.triplet }}) - runs-on: [windows-latest] + runs-on: ${{ matrix.runs_on }} strategy: fail-fast: false matrix: @@ -31,15 +30,27 @@ jobs: - triplet: x86-windows-dynamic arch: '-A Win32' build_shared_libs: 'ON' + runs_on: windows-latest - triplet: x64-windows-dynamic arch: '-A x64' build_shared_libs: 'ON' + runs_on: windows-latest + - triplet: arm64-windows-dynamic + arch: '-A ARM64' + build_shared_libs: 'ON' + runs_on: windows-11-arm - triplet: x86-windows-static arch: '-A Win32' build_shared_libs: 'OFF' + runs_on: windows-latest - triplet: x64-windows-static arch: '-A x64' build_shared_libs: 'OFF' + runs_on: windows-latest + - triplet: arm64-windows-static + arch: '-A ARM64' + build_shared_libs: 'OFF' + runs_on: windows-11-arm env: VCPKG_VERSION: '2022.11.14' @@ -61,12 +72,10 @@ jobs: - name: Download vcpkg if: steps.cache-vcpkg.outputs.cache-hit != 'true' - # wget doesn't seem to work under bash. shell: 'powershell' run: | - C:\msys64\usr\bin\wget.exe -nv ` - https://github.com/microsoft/vcpkg/archive/refs/tags/${{ env.VCPKG_VERSION }}.zip ` - -O vcpkg.zip + Invoke-WebRequest -Uri "https://github.com/microsoft/vcpkg/archive/refs/tags/${{ env.VCPKG_VERSION }}.zip" -OutFile "vcpkg.zip" + - name: Bootstrap vcpkg if: steps.cache-vcpkg.outputs.cache-hit != 'true' shell: 'bash'