diff --git a/.github/workflows/mac-builds.yaml b/.github/workflows/mac-builds.yaml index 140f393fc2..2974653588 100644 --- a/.github/workflows/mac-builds.yaml +++ b/.github/workflows/mac-builds.yaml @@ -67,4 +67,4 @@ jobs: - name: Build run: | - ./ci/developer.build.sh \ No newline at end of file + ./ci/developer.build.sh -S "$PWD" -B build-developer \ No newline at end of file diff --git a/ci/developer.build.sh b/ci/developer.build.sh index 5127744751..fd0389ff14 100755 --- a/ci/developer.build.sh +++ b/ci/developer.build.sh @@ -1,7 +1,7 @@ #!/bin/bash -eux -if [[ $# -lt 1 ]]; then - echo "Pass paths to source and build dir as you would for any CMake script: -S -B " +if [[ $# -lt 4 ]]; then + echo "Pass paths to source and build dir as you would for any CMake script: -S '' -B ''" exit 1 fi @@ -31,5 +31,5 @@ ARGS=( -DCMAKE_BUILD_TYPE=Debug ) -cmake "$@" "${ARGS[@]}" -cmake --build build-developer +cmake -S "$2" -B "$4" "${ARGS[@]}" +cmake --build "$4"