gh-actions: remove run-vcpkg action #548
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.10.21" | |
vcpkg_commit: "10b7a178346f3f0abef60cecd5130e295afd8da4" | |
- vcpkg_tag: "2025.01.13" | |
vcpkg_commit: "6f29f12e82a8293156836ad81cc9bf5af41fe836" | |
fail-fast: false | |
env: | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/[email protected] | |
- uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- 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: | | |
New-Item -Type Directory -Force C:/vcpkg-caches | |
Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force | |
shell: pwsh | |
- uses: lukka/[email protected] | |
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/[email protected] | |
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/[email protected] | |
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: "2025.01.13" | |
vcpkg_commit: "6f29f12e82a8293156836ad81cc9bf5af41fe836" | |
fail-fast: false | |
env: | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/[email protected] | |
- uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- 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: | | |
New-Item -Type Directory -Force C:/vcpkg-caches | |
Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force | |
shell: pwsh | |
- uses: lukka/[email protected] | |
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/[email protected] | |
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: "2025.01.13" | |
vcpkg_commit: "6f29f12e82a8293156836ad81cc9bf5af41fe836" | |
fail-fast: false | |
env: | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/[email protected] | |
- uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- uses: humbletim/[email protected] # 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: | | |
New-Item -Type Directory -Force C:/vcpkg-caches | |
Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force | |
shell: pwsh | |
- uses: lukka/[email protected] | |
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/[email protected] | |
with: | |
additional-path: "C:/vcpkg/buildtrees,C:/vcpkg/packages" | |
if: always() |