@@ -25,12 +25,22 @@ jobs:
2525 fail-fast : false
2626
2727 runs-on : ${{ matrix.os }}
28+ defaults :
29+ run :
30+ shell : bash
2831
2932 steps :
3033 - uses : actions/checkout@v4
3134 with :
3235 submodules : recursive
3336
37+ - name : Create short workspace mapping
38+ shell : bash
39+ run : |
40+ win_path=$(pwd -W)
41+ cmd //C "subst T: \"$win_path\""
42+ echo "SHORT_WORKSPACE=T:/" >> "$GITHUB_ENV"
43+
3444 - name : Cache Cargo registry
3545 uses : actions/cache@v4
3646 with :
@@ -59,32 +69,45 @@ jobs:
5969 distribution : " temurin"
6070
6171 - name : Install rust dependencies
72+ shell : bash
6273 run : |
74+ cd "$SHORT_WORKSPACE"
6375 cargo install wasm-tools wit-bindgen-cli || true
6476
6577 - name : configure
78+ shell : bash
6679 run : |
80+ cd "$SHORT_WORKSPACE"
6781 cmake --preset ${{ matrix.config }}
6882
6983 - name : build
84+ shell : bash
7085 run : |
86+ cd "$SHORT_WORKSPACE"
7187 cmake --build --preset ${{ matrix.build }}
7288
7389 - name : test
74- working-directory : build
90+ shell : bash
7591 run : |
92+ cd "$SHORT_WORKSPACE/build"
7693 ctest -C Debug -VV
7794
7895 - name : test-stubs-full (allowed to fail)
79- working-directory : build
8096 continue-on-error : true
8197 shell : bash
8298 run : |
99+ cd "$SHORT_WORKSPACE/build"
83100 echo "Running wit-stub-generation-test (failures expected and will be reported)..."
84101 ctest -C Debug -VV -R "wit-stub-generation-test" > test_output.txt 2>&1 || true
85102 cat test_output.txt
86103 ../.github/scripts/summarize-test-failures.sh test_output.txt test_summary.md
87104
105+ - name : Remove short workspace mapping
106+ if : always()
107+ shell : bash
108+ run : |
109+ cmd //C "subst T: /D" || true
110+
88111 - name : Upload error logs
89112 if : ${{ failure() || cancelled() }}
90113 uses : actions/upload-artifact@v4
0 commit comments