CI: derive the build root from GITHUB_WORKSPACE

On hosted runners this means D:, on self-hosted it
will point to C: if there is only one drive.
This commit is contained in:
Christoph Reiter 2025-03-06 00:26:23 +01:00
parent 7ec5a79b46
commit 625631832e

View File

@ -185,5 +185,5 @@ jobs:
MSYS2_ROOT: ${{ steps.msys2.outputs.msys2-location }}
run: |
$env:VCPKG_ROOT=''
$BUILD_ROOT='D:\'
$BUILD_ROOT=Join-Path (Split-Path $env:GITHUB_WORKSPACE -Qualifier) "\"
python -m msys2_autobuild build ${{ matrix.build-args }} "$env:MSYS2_ROOT" "$BUILD_ROOT"