Skip to content

Commit

Permalink
Specify macos version
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Feb 11, 2025
1 parent 3a6d609 commit d67bae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
compiler-name-conan: clang

- name: macos-apple-clang
os: macos-latest
os: macos-14
compiler-cppstd: "gnu17"

- name: windows-msvc-19
Expand Down
6 changes: 4 additions & 2 deletions test/compilation-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ INSTALL_PATH=$(realpath ~/SI-install)

buildSingleTarget()
{
set -x
if [ "${2}" == "DEFAULTBUILD" ]; then
cmake ${ROOT_DIR}/test/src/compilation_tests/ -B${BUILD_DIR} -DCMAKE_PREFIX_PATH=${BUILD_DIR} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} -DCMAKE_BUILD_TYPE=Release -G Ninja > /dev/null
assertEquals "Configuration successful" 0 $?
assertEquals "Configuration for defaultbuild successful" 0 $?

else
cmake ${ROOT_DIR}/test/src/compilation_tests/ -B${BUILD_DIR} -DCMAKE_PREFIX_PATH=${BUILD_DIR} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-DSI_DISABLE_IMPLICIT_RATIO_CONVERSION" -G Ninja > /dev/null
assertEquals "Configuration successful" 0 $?
assertEquals "Configuration for build with disabled ration cinversion successful" 0 $?
fi

cmake --build ${BUILD_DIR} --config Release --target $1 > /dev/null
Expand All @@ -24,6 +25,7 @@ buildSingleTarget()
else
assertNotEquals "Building fails" 0 $RESULT
fi
set +x
}

oneTimeSetUp(){
Expand Down

0 comments on commit d67bae5

Please sign in to comment.