Skip to content

Commit a5ab92d

Browse files
committed
Move from D: to C: as new windows runner images would no longer use D: - actions/runner-images#12416
1 parent f81ad23 commit a5ab92d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/otel_sdk.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- uses: actions/cache/restore@v4
2828
with:
29-
path: d:/d.vhdx
29+
path: c:/d.vhdx
3030
enableCrossOsArchive: true
3131
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'MODULE.bazel', 'MODULE.bazel.lock') }}
3232
restore-keys: ${{ runner.os }}-bazel-
3333
- name: mount cache disk
3434
run: |
35-
New-Item -Path d:/d -ItemType "directory" -Force -Verbose
36-
If (-not(Test-Path d:/d.vhdx)) {
37-
$vhd = New-VHD -Path d:/d.vhdx -SizeBytes 137438953472 -Dynamic -LogicalSectorSizeBytes 4096 -PhysicalSectorSizeBytes 4096 -Verbose
35+
New-Item -Path c:/d -ItemType "directory" -Force -Verbose
36+
If (-not(Test-Path c:/d.vhdx)) {
37+
$vhd = New-VHD -Path c:/d.vhdx -SizeBytes 137438953472 -Dynamic -LogicalSectorSizeBytes 4096 -PhysicalSectorSizeBytes 4096 -Verbose
3838
$vhd
3939
$mnt = Mount-VHD -Path $vhd.path -NoDriveLetter -Verbose -PassThru | Out-Host
4040
$mnt
@@ -45,42 +45,42 @@ jobs:
4545
$part
4646
$vol = Format-Volume -FileSystem ReFS -Partition $part -Verbose
4747
$vol
48-
Dismount-VHD -Path d:/d.vhdx -Verbose
48+
Dismount-VHD -Path c:/d.vhdx -Verbose
4949
}
50-
$part = Mount-VHD -Path d:/d.vhdx -NoDriveLetter -Verbose -PassThru | Get-Disk | Get-Partition | Where-Object -Not IsHidden
50+
$part = Mount-VHD -Path c:/d.vhdx -NoDriveLetter -Verbose -PassThru | Get-Disk | Get-Partition | Where-Object -Not IsHidden
5151
$part
52-
$part | Add-PartitionAccessPath -AccessPath d:/d -Verbose
53-
ls d:/d.vhdx
54-
echo empty > d:\d\empty.txt
55-
cmd /c dir d:\d || echo "swallowing errors"
56-
refsutil dedup d:\d /s
52+
$part | Add-PartitionAccessPath -AccessPath c:/d -Verbose
53+
ls c:/d.vhdx
54+
echo empty > c:\d\empty.txt
55+
cmd /c dir c:\d || echo "swallowing errors"
56+
refsutil dedup c:\d /s
5757
- name: build minimal otel_sdk
5858
# On the CI, the github runner does not have constant vs2022 msvc release, but has the same vs2019 (14.29.30133)
5959
run: |
6060
echo "build:windows --action_env=BAZEL_VC_FULL_VERSION=14.29.30133" >> ../top.bazelrc
6161
echo "build:windows --host_action_env=BAZEL_VC_FULL_VERSION=14.42.34438" >> ../top.bazelrc
6262
echo "common --remote_download_minimal" >> ../top.bazelrc
63-
echo "build --disk_cache=d:/d" >> ../top.bazelrc
64-
echo "common --repository_cache=d:/r" >> ../top.bazelrc
65-
echo "startup --output_user_root=d:/b" >> ../top.bazelrc
63+
echo "build --disk_cache=c:/d" >> ../top.bazelrc
64+
echo "common --repository_cache=c:/r" >> ../top.bazelrc
65+
echo "startup --output_user_root=c:/b" >> ../top.bazelrc
6666
./otel_sdk_build.cmd minimal
6767
./otel_sdk_build.cmd shutdown
6868
- run: |
69-
cmd /c dir d:\d || echo "swallowing errors"
70-
Dismount-VHD -Path "d:/d.vhdx" -Verbose
71-
ls d:/d.vhdx
72-
Resize-VHD -Path "d:/d.vhdx" -ToMinimumSize -Verbose -ErrorAction SilentlyContinue
73-
ls d:/d.vhdx
69+
cmd /c dir c:\d || echo "swallowing errors"
70+
Dismount-VHD -Path "c:/d.vhdx" -Verbose
71+
ls c:/d.vhdx
72+
Resize-VHD -Path "c:/d.vhdx" -ToMinimumSize -Verbose -ErrorAction SilentlyContinue
73+
ls c:/d.vhdx
7474
- uses: actions/cache/save@v4
7575
# Don't update cache on releases
7676
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
7777
env:
7878
ZSTD_CLEVEL: 1 # 1 (fastest) .. 19 (slowest)
7979
with:
80-
path: d:/d.vhdx
80+
path: c:/d.vhdx
8181
enableCrossOsArchive: true
8282
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'MODULE.bazel', 'MODULE.bazel.lock') }}
83-
- run: Mount-VHD -Path "d:/d.vhdx" -NoDriveLetter -Verbose -PassThru | Out-Host
83+
- run: Mount-VHD -Path "c:/d.vhdx" -NoDriveLetter -Verbose -PassThru | Out-Host
8484
- uses: actions/upload-artifact@v4
8585
with:
8686
name: tracing-profiles
@@ -89,7 +89,7 @@ jobs:
8989
- run: ./otel_sdk_build.cmd test
9090
- run: ./otel_sdk_build.cmd zip
9191
- run: ./otel_sdk_build.cmd shutdown
92-
- run: ls d:/d.vhdx
92+
- run: ls c:/d.vhdx
9393
- uses: actions/upload-artifact@v4
9494
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
9595
with:

0 commit comments

Comments
 (0)