From 0ef0b310bc56c35c8ca4134956326190d9b73a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20De=20Keersmaeker?= <francois.dekeersmaeker@uclouvain.be> Date: Wed, 2 Oct 2024 07:39:45 +0000 Subject: [PATCH] Build: arg directory: -d -> -C --- .ci_scripts/build.sh | 10 +++++----- .github/workflows/unit-tests.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.ci_scripts/build.sh b/.ci_scripts/build.sh index f308222..aa78e01 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 d9e69a4..b89710a 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 -- GitLab