diff --git a/.ci_scripts/build.sh b/.ci_scripts/build.sh index f3082228a774653718cbf9fab754f0952e902f04..aa78e01d15fc8db368fbe54abebb415d7a1cb664 100755 --- a/.ci_scripts/build.sh +++ b/.ci_scripts/build.sh @@ -1,23 +1,23 @@ #!/bin/bash # Build the project. -# Usage: build.sh [-d working_directory] [-t cmake_toolchain_file] -# -d working_directory: The directory to build the project in. +# Usage: build.sh [-C working_directory] [-t cmake_toolchain_file] +# -C working_directory: The directory to build the project in. # Default values WORKING_DIRECTORY="" # Print usage information usage() { - echo "Usage: $0 [-d working_directory]" 1>&2 + echo "Usage: $0 [-C working_directory]" 1>&2 exit 1 } # Parse command line arguments -while getopts "d:" opt; +while getopts "C:" opt; do case "${opt}" in - d) + C) # Working directory WORKING_DIRECTORY="${OPTARG}" echo "Building in directory ${WORKING_DIRECTORY}" diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index d9e69a49a8beba1b56144f35d4ff61aa9edaea44..b89710a3b8aa955799702f9569eac62acda01bb2 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -17,7 +17,7 @@ jobs: run: sudo $GITHUB_WORKSPACE/.ci_scripts/install_packages.sh - name: Build project with CMake - run: $GITHUB_WORKSPACE/.ci_scripts/build.sh -d $GITHUB_WORKSPACE + run: $GITHUB_WORKSPACE/.ci_scripts/build.sh -C $GITHUB_WORKSPACE - name: Run CUnit tests run: $GITHUB_WORKSPACE/.ci_scripts/run_tests.sh