Skip to content

Commit 4fd8386

Browse files
committed
fix: resolve package cache path at runtime
1 parent 142c49e commit 4fd8386

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
runs-on: windows-latest
1414
env:
1515
PACKAGE_VERSION: 3.0.1-ci.${{ github.run_number }}.${{ github.run_attempt }}
16-
PACKAGE_CONSUMER_CACHE: ${{ runner.temp }}\openvisionlab-package-consumer-${{ github.run_id }}-${{ github.run_attempt }}
1716

1817
steps:
1918
- name: Checkout
@@ -61,7 +60,7 @@ jobs:
6160
}
6261
6362
- name: Restore package-only consumer
64-
run: dotnet restore tests/OpenVisionLab.PackageConsumer.Smoke/OpenVisionLab.PackageConsumer.Smoke.csproj "-p:PackageVersion=$env:PACKAGE_VERSION" "-p:RestorePackagesPath=$env:PACKAGE_CONSUMER_CACHE" "-p:RestoreSources=$env:GITHUB_WORKSPACE\artifacts\packages"
63+
run: dotnet restore tests/OpenVisionLab.PackageConsumer.Smoke/OpenVisionLab.PackageConsumer.Smoke.csproj "-p:PackageVersion=$env:PACKAGE_VERSION" "-p:RestorePackagesPath=$env:RUNNER_TEMP\openvisionlab-package-consumer-$env:GITHUB_RUN_ID-$env:GITHUB_RUN_ATTEMPT" "-p:RestoreSources=$env:GITHUB_WORKSPACE\artifacts\packages"
6564

6665
- name: Run package-only 2D and 3D consumer
67-
run: dotnet run --project tests/OpenVisionLab.PackageConsumer.Smoke/OpenVisionLab.PackageConsumer.Smoke.csproj -c Release --no-restore "-p:PackageVersion=$env:PACKAGE_VERSION" "-p:RestorePackagesPath=$env:PACKAGE_CONSUMER_CACHE"
66+
run: dotnet run --project tests/OpenVisionLab.PackageConsumer.Smoke/OpenVisionLab.PackageConsumer.Smoke.csproj -c Release --no-restore "-p:PackageVersion=$env:PACKAGE_VERSION" "-p:RestorePackagesPath=$env:RUNNER_TEMP\openvisionlab-package-consumer-$env:GITHUB_RUN_ID-$env:GITHUB_RUN_ATTEMPT"

0 commit comments

Comments
 (0)