Skip to content

Commit 7c4b2ff

Browse files
committed
Use FAT32 target for Windows mtime repro
1 parent 884a878 commit 7c4b2ff

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/windows-bundled-archive-mtime.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,26 @@ jobs:
1919
with:
2020
ref: v1.10503.0
2121
- uses: actions-rust-lang/setup-rust-toolchain@v1
22+
- name: Create FAT32 target volume
23+
shell: pwsh
24+
run: |
25+
$ErrorActionPreference = "Stop"
26+
$vhd = Join-Path $env:RUNNER_TEMP "cargo-target.vhd"
27+
$diskpartScript = Join-Path $env:RUNNER_TEMP "diskpart.txt"
28+
@"
29+
create vdisk file="$vhd" maximum=16384 type=expandable
30+
select vdisk file="$vhd"
31+
attach vdisk
32+
create partition primary
33+
format fs=fat32 quick label=CARGO
34+
assign letter=U
35+
"@ | Set-Content -Path $diskpartScript -Encoding ascii
36+
diskpart /s $diskpartScript
37+
New-Item -ItemType Directory -Force -Path U:\target | Out-Null
2238
- name: Confirm bundled build fails before fix
2339
shell: pwsh
40+
env:
41+
CARGO_TARGET_DIR: U:\target
2442
run: |
2543
$output = & cargo check -p libduckdb-sys --no-default-features --features bundled 2>&1
2644
$status = $LASTEXITCODE
@@ -42,5 +60,23 @@ jobs:
4260
steps:
4361
- uses: actions/checkout@v5
4462
- uses: actions-rust-lang/setup-rust-toolchain@v1
63+
- name: Create FAT32 target volume
64+
shell: pwsh
65+
run: |
66+
$ErrorActionPreference = "Stop"
67+
$vhd = Join-Path $env:RUNNER_TEMP "cargo-target.vhd"
68+
$diskpartScript = Join-Path $env:RUNNER_TEMP "diskpart.txt"
69+
@"
70+
create vdisk file="$vhd" maximum=16384 type=expandable
71+
select vdisk file="$vhd"
72+
attach vdisk
73+
create partition primary
74+
format fs=fat32 quick label=CARGO
75+
assign letter=U
76+
"@ | Set-Content -Path $diskpartScript -Encoding ascii
77+
diskpart /s $diskpartScript
78+
New-Item -ItemType Directory -Force -Path U:\target | Out-Null
4579
- name: Check bundled build
80+
env:
81+
CARGO_TARGET_DIR: U:\target
4682
run: cargo check -p libduckdb-sys --no-default-features --features bundled

0 commit comments

Comments
 (0)