|
19 | 19 | with: |
20 | 20 | ref: v1.10503.0 |
21 | 21 | - 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 |
22 | 38 | - name: Confirm bundled build fails before fix |
23 | 39 | shell: pwsh |
| 40 | + env: |
| 41 | + CARGO_TARGET_DIR: U:\target |
24 | 42 | run: | |
25 | 43 | $output = & cargo check -p libduckdb-sys --no-default-features --features bundled 2>&1 |
26 | 44 | $status = $LASTEXITCODE |
|
42 | 60 | steps: |
43 | 61 | - uses: actions/checkout@v5 |
44 | 62 | - 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 |
45 | 79 | - name: Check bundled build |
| 80 | + env: |
| 81 | + CARGO_TARGET_DIR: U:\target |
46 | 82 | run: cargo check -p libduckdb-sys --no-default-features --features bundled |
0 commit comments