Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Oct 8, 2023
1 parent 0ffc1bf commit 64b4c75
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/static_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ jobs:
echo "commit all files in the artifact to .github/workflows/ if these are valid results"
exit 1
#---------------------------------------------------------------------------------------------------#
test_downloader:
name: "Run CMake compatibility tool"
# We verify the minimal CMake version we support is preserved when building with default CMake flags
minimal_camke_version:
name: "Minimal CMake version"
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -131,11 +132,11 @@ jobs:
- name: "Check minimal CMake version"
run: |
if [ "${{steps.cmake_version.outputs.current_cmake_version}}" == "${EXPECTED_CMAKE_VERSION}" ] || [ "${{steps.cmake_version.outputs.current_cmake_version}}" \< "${EXPECTED_CMAKE_VERSION}" ]
if [ "${{minimal_camke_version.steps.cmake_version.outputs.current_cmake_version}}" == "${EXPECTED_CMAKE_VERSION}" ] || [ "${{minimal_camke_version.steps.cmake_version.outputs.current_cmake_version}}" \< "${EXPECTED_CMAKE_VERSION}" ]
then
echo "The test PASSED, current CMake version is ${{steps.cmake_version.outputs.current_cmake_version}} and it is not higher than ${EXPECTED_CMAKE_VERSION}"
echo "The test PASSED, current CMake version is ${{minimal_camke_version.steps.cmake_version.outputs.current_cmake_version}} and it is not higher than ${EXPECTED_CMAKE_VERSION}"
exit 0
else
echo "Error - LibRS minimal CMake version require is ${EXPECTED_CMAKE_VERSION} but on this build the minimal is ${{steps.cmake_version.outputs.current_cmake_version}}"
echo "Error - LibRS minimal CMake version require is ${EXPECTED_CMAKE_VERSION} but on this build the minimal is ${{minimal_camke_version.steps.cmake_version.outputs.current_cmake_version}}"
exit 1
fi

0 comments on commit 64b4c75

Please sign in to comment.