ci: update cache keys to 2447 #540
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Windows(Hosted)" | |
on: | |
push: | |
branches-ignore: | |
- docs | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
env: | |
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions" | |
VCPKG_ENABLE_METRICS: 0 | |
jobs: | |
overlay: | |
runs-on: ["self-hosted", "Windows"] | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
include: | |
- vcpkg_tag: "2024.09.30" | |
vcpkg_commit: "c82f74667287d3dc386bce81e44964370c91a289" | |
- vcpkg_tag: "2024.10.21" | |
vcpkg_commit: "10b7a178346f3f0abef60cecd5130e295afd8da4" | |
- vcpkg_tag: "2024.11.16" | |
vcpkg_commit: "b2cb0da531c2f1f740045bfe7c4dac59f0b2b69c" | |
fail-fast: false | |
env: | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- uses: ConorMacBride/install-package@v1.1.0 | |
with: | |
choco: awscli | |
- name: "Update environment" | |
run: | | |
Write-Output "PATH=$env:PATH;C:\Program Files\Amazon\AWSCLIV2" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
New-Item -Type Directory -Force C:/vcpkg-caches | |
shell: pwsh | |
- name: "Enable LongPath" | |
run: | | |
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force | |
git config --system core.longpaths true | |
shell: pwsh | |
continue-on-error: true | |
- name: "Change vcpkg.json" | |
run: Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force | |
shell: pwsh | |
- uses: lukka/run-vcpkg@v11.5 | |
name: "Run vcpkg(x64-windows, ${{ matrix.vcpkg_tag }})" | |
with: | |
vcpkgDirectory: "C:/vcpkg" | |
vcpkgGitCommitId: ${{ matrix.vcpkg_commit }} | |
vcpkgJsonGlob: "test/vcpkg.json" | |
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | |
runVcpkgInstall: true | |
runVcpkgFormatString: '[`install`, `--keep-going`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `test`]' | |
env: | |
VCPKG_DEFAULT_TRIPLET: "x64-windows" | |
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }};files,C:/vcpkg-caches,readwrite" | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- uses: lukka/run-vcpkg@v11.5 | |
name: "Run vcpkg(arm64-windows, ${{ matrix.vcpkg_tag }})" | |
with: | |
vcpkgDirectory: "C:/vcpkg" | |
vcpkgGitCommitId: ${{ matrix.vcpkg_commit }} | |
vcpkgJsonGlob: "test/vcpkg.json" | |
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | |
runVcpkgInstall: true | |
runVcpkgFormatString: '[`install`, `--keep-going`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `test`]' | |
env: | |
VCPKG_DEFAULT_TRIPLET: "arm64-windows" | |
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }};files,C:/vcpkg-caches,readwrite" | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- uses: yumis-coconudge/clean-workspace-action@v1.0.6 | |
with: | |
additional-path: "C:/vcpkg/buildtrees,C:/vcpkg/packages" | |
if: always() | |
overlay_cuda: | |
runs-on: ["self-hosted", "Windows", "CUDA"] | |
# needs: ["overlay"] | |
continue-on-error: true | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
include: | |
- vcpkg_tag: "2024.10.21" | |
vcpkg_commit: "10b7a178346f3f0abef60cecd5130e295afd8da4" | |
fail-fast: false | |
env: | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- uses: ConorMacBride/install-package@v1.1.0 | |
with: | |
choco: awscli | |
- name: "Update environment" | |
run: | | |
Write-Output "PATH=$env:PATH;C:\Program Files\Amazon\AWSCLIV2" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
New-Item -Type Directory -Force C:/vcpkg-caches | |
shell: pwsh | |
- name: "Enable LongPath" | |
run: | | |
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force | |
git config --system core.longpaths true | |
shell: pwsh | |
continue-on-error: true | |
- name: "Change vcpkg.json" | |
run: Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force | |
shell: pwsh | |
- uses: lukka/run-vcpkg@v11.5 | |
name: "Run vcpkg(x64-windows, ${{ matrix.vcpkg_tag }})" | |
with: | |
vcpkgDirectory: "C:/vcpkg" | |
vcpkgGitCommitId: "${{ matrix.vcpkg_commit }}" | |
vcpkgJsonGlob: "test/vcpkg.json" | |
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | |
runVcpkgInstall: true | |
runVcpkgFormatString: '[`install`, `--keep-going`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `cuda`]' | |
env: | |
VCPKG_DEFAULT_TRIPLET: "x64-windows" | |
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }};files,C:/vcpkg-caches,readwrite" | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- uses: yumis-coconudge/clean-workspace-action@v1.0.6 | |
with: | |
additional-path: "C:/vcpkg/buildtrees,C:/vcpkg/packages" | |
if: always() | |
overlay_vulkan: | |
runs-on: ["self-hosted", "Windows"] | |
# needs: ["overlay"] | |
continue-on-error: true | |
timeout-minutes: 300 | |
strategy: | |
matrix: | |
include: | |
- vcpkg_tag: "2024.10.21" | |
vcpkg_commit: "10b7a178346f3f0abef60cecd5130e295afd8da4" | |
fail-fast: false | |
env: | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- uses: ConorMacBride/install-package@v1.1.0 | |
with: | |
choco: awscli | |
- name: "Update environment" | |
run: | | |
Write-Output "PATH=$env:PATH;C:\Program Files\Amazon\AWSCLIV2" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
New-Item -Type Directory -Force C:/vcpkg-caches | |
shell: pwsh | |
- uses: humbletim/install-vulkan-sdk@v1.1.1 # install Vulkan sdk if env.VULKAN_SDK is empty | |
if: env.VULKAN_SDK == '' | |
with: | |
version: "1.3.239.0" | |
cache: true | |
continue-on-error: true | |
- name: "Enable LongPath" | |
run: | | |
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force | |
git config --system core.longpaths true | |
shell: pwsh | |
continue-on-error: true | |
- name: "Change vcpkg.json" | |
run: Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force | |
shell: pwsh | |
- uses: lukka/run-vcpkg@v11.5 | |
name: "Run vcpkg(x64-windows, ${{ matrix.vcpkg_tag }})" | |
with: | |
vcpkgDirectory: "C:/vcpkg" | |
vcpkgGitCommitId: "${{ matrix.vcpkg_commit }}" | |
vcpkgJsonGlob: "test/vcpkg.json" | |
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | |
runVcpkgInstall: true | |
runVcpkgFormatString: '[`install`, `--keep-going`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `vulkan`]' | |
env: | |
VCPKG_DEFAULT_TRIPLET: "x64-windows" | |
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }};files,C:/vcpkg-caches,readwrite" | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- uses: yumis-coconudge/clean-workspace-action@v1.0.6 | |
with: | |
additional-path: "C:/vcpkg/buildtrees,C:/vcpkg/packages" | |
if: always() |