Skip to content
Extraits de code Groupes Projets
Valider 0ef0b310 rédigé par François De Keersmaeker's avatar François De Keersmaeker
Parcourir les fichiers

Build: arg directory: -d -> -C

parent 746030e9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
#!/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}"
......
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter