|
31 | 31 | with: |
32 | 32 | submodules: recursive |
33 | 33 |
|
| 34 | + - name: Create short workspace mapping |
| 35 | + run: | |
| 36 | + $winPath = (Get-Location).Path |
| 37 | + cmd /c ("subst T: ""{0}""" -f $winPath) |
| 38 | + Add-Content -Path $env:GITHUB_ENV -Value "SHORT_WORKSPACE=T:/" |
| 39 | +
|
34 | 40 | - name: Cache Cargo registry |
35 | 41 | uses: actions/cache@v4 |
36 | 42 | with: |
@@ -60,30 +66,33 @@ jobs: |
60 | 66 |
|
61 | 67 | - name: Install rust dependencies |
62 | 68 | run: | |
63 | | - cargo install wasm-tools wit-bindgen-cli || true |
| 69 | + Set-Location "$env:SHORT_WORKSPACE" |
| 70 | + & cargo install wasm-tools wit-bindgen-cli |
| 71 | + if ($LASTEXITCODE -ne 0) { |
| 72 | + Write-Host "cargo install exited with code $LASTEXITCODE (ignored)." |
| 73 | + $global:LASTEXITCODE = 0 |
| 74 | + } |
64 | 75 |
|
65 | 76 | - name: configure |
66 | 77 | run: | |
67 | | - cmake --preset ${{ matrix.config }} |
| 78 | + Set-Location "$env:SHORT_WORKSPACE" |
| 79 | + & cmake --preset ${{ matrix.config }} |
68 | 80 |
|
69 | 81 | - name: build |
70 | 82 | run: | |
71 | | - cmake --build --preset ${{ matrix.build }} |
| 83 | + Set-Location "$env:SHORT_WORKSPACE" |
| 84 | + & cmake --build --preset ${{ matrix.build }} |
72 | 85 |
|
73 | 86 | - name: test |
74 | 87 | working-directory: build |
75 | 88 | run: | |
76 | | - ctest -C Debug -VV |
| 89 | + Set-Location "$env:SHORT_WORKSPACE/build" |
| 90 | + & ctest -C Debug -VV |
77 | 91 |
|
78 | | - - name: test-stubs-full (allowed to fail) |
79 | | - working-directory: build |
80 | | - continue-on-error: true |
81 | | - shell: bash |
| 92 | + - name: Remove short workspace mapping |
| 93 | + if: always() |
82 | 94 | run: | |
83 | | - echo "Running wit-stub-generation-test (failures expected and will be reported)..." |
84 | | - ctest -C Debug -VV -R "wit-stub-generation-test" > test_output.txt 2>&1 || true |
85 | | - cat test_output.txt |
86 | | - ../.github/scripts/summarize-test-failures.sh test_output.txt test_summary.md |
| 95 | + cmd /c "subst T: /D" 2>$null |
87 | 96 |
|
88 | 97 | - name: Upload error logs |
89 | 98 | if: ${{ failure() || cancelled() }} |
|
0 commit comments