ci: optional BUILD_WORKSPACE

Setup scripts can change BUILD_WORKSPACE, for instance, if they use a
different format for paths, they can replace with `cygpath` variants.
This commit is contained in:
Edward Thomson
2023-12-19 11:24:17 +00:00
parent a79ef29e6a
commit 9d8fa925f2

View File

@@ -238,14 +238,14 @@ jobs:
- name: Build
uses: ./source/.github/actions/run-build
with:
command: cd build && ../source/ci/build.sh
command: cd ${BUILD_WORKSPACE:-.}/build && ../source/ci/build.sh
container: ${{ matrix.platform.container.name }}
container-version: ${{ env.docker-registry-container-sha }}
shell: ${{ matrix.platform.shell }}
- name: Test
uses: ./source/.github/actions/run-build
with:
command: cd build && ../source/ci/test.sh
command: cd ${BUILD_WORKSPACE:-.}/build && ../source/ci/test.sh
container: ${{ matrix.platform.container.name }}
container-version: ${{ env.docker-registry-container-sha }}
shell: ${{ matrix.platform.shell }}