Skip to content

Commit

Permalink
ci: separate Windows(CUDA) workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Feb 5, 2024
1 parent c240bd4 commit c86b53c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 35 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-windows-cuda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Windows(CUDA)"

on: [push, workflow_dispatch]

env:
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions"

jobs:
cuda_x64_windows:
runs-on: ["self-hosted", "Windows", "CUDA"]
continue-on-error: true
timeout-minutes: 180
env:
VCPKG_DOWNLOADS: "C:/vcpkg/downloads"
VCPKG_DEFAULT_BINARY_CACHE: "C:/vcpkg/archives"
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"
steps:
- uses: actions/[email protected]
- uses: microsoft/[email protected]
with:
msbuild-architecture: x64

- name: "create cache folders"
run: |
New-Item -Type Directory -Force ${env:VCPKG_DOWNLOADS}
New-Item -Type Directory -Force ${env:VCPKG_DEFAULT_BINARY_CACHE}
Move-Item -Path "test/self-hosted-cuda.json" -Destination "test/vcpkg.json" -Force
- uses: lukka/[email protected]
with:
vcpkgDirectory: "C:/vcpkg"
vcpkgGitCommitId: "c8696863d371ab7f46e213d8f5ca923c4aef2a00" # 2023.12.12
vcpkgJsonGlob: "test/vcpkg.json"
runVcpkgInstall: true
runVcpkgFormatString: '[`install`, `--clean-buildtrees-after-build`, `--clean-packages-after-build`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`]'
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"

- uses: yumis-coconudge/[email protected]
with:
additional-path: "C:/vcpkg/installed"
35 changes: 0 additions & 35 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,38 +51,3 @@ jobs:
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
VCPKG_BINARY_SOURCES: "default"

cuda_x64:
runs-on: ["self-hosted", "Windows", "CUDA"]
continue-on-error: true
timeout-minutes: 180
env:
VCPKG_DOWNLOADS: "C:/vcpkg/downloads"
VCPKG_DEFAULT_BINARY_CACHE: "C:/vcpkg/archives"
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"
steps:
- uses: actions/[email protected]
- uses: microsoft/[email protected]
with:
msbuild-architecture: x64

- name: "create cache folders"
run: |
New-Item -Type Directory -Force ${env:VCPKG_DOWNLOADS}
New-Item -Type Directory -Force ${env:VCPKG_DEFAULT_BINARY_CACHE}
Move-Item -Path "test/self-hosted-cuda.json" -Destination "test/vcpkg.json" -Force
- uses: lukka/[email protected]
with:
vcpkgDirectory: "C:/vcpkg"
vcpkgGitCommitId: "c8696863d371ab7f46e213d8f5ca923c4aef2a00" # 2023.12.12
vcpkgJsonGlob: "test/vcpkg.json"
runVcpkgInstall: true
runVcpkgFormatString: '[`install`, `--clean-buildtrees-after-build`, `--clean-packages-after-build`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`]'
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"

- uses: yumis-coconudge/[email protected]
with:
additional-path: "C:/vcpkg/installed"

0 comments on commit c86b53c

Please sign in to comment.