diff --git a/.github/workflows/gh-actions.yml b/.github/workflows/gh-actions.yml index f2db5d11c8..85d5659f04 100644 --- a/.github/workflows/gh-actions.yml +++ b/.github/workflows/gh-actions.yml @@ -57,7 +57,7 @@ jobs: - run: $RUNNER -q --jerry-tests --buildoptions=--compile-flag=-m32,--cpointer-32bit=on --build-debug OSX_x86-64_Build_Correctness_Unit_Tests: - runs-on: macos-latest + runs-on: macos-13 steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v4 @@ -67,7 +67,7 @@ jobs: - run: $RUNNER -q --unittests OSX_x86-64_Build_Correctness_Unit_Tests_Debug: - runs-on: macos-latest + runs-on: macos-13 steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v4 diff --git a/tests/unit-math/CMakeLists.txt b/tests/unit-math/CMakeLists.txt index d456731d42..10ca95256a 100644 --- a/tests/unit-math/CMakeLists.txt +++ b/tests/unit-math/CMakeLists.txt @@ -30,6 +30,9 @@ foreach(SOURCE_UNIT_TEST_MAIN ${SOURCE_UNIT_TEST_MAIN_MODULES}) add_executable(${TARGET_NAME} ${SOURCE_UNIT_TEST_MAIN}) set_property(TARGET ${TARGET_NAME} PROPERTY LINK_FLAGS "${LINKER_FLAGS_COMMON}") set_property(TARGET ${TARGET_NAME} PROPERTY RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests") + if("${PLATFORM}" STREQUAL "DARWIN") + set_property(TARGET ${TARGET_NAME} PROPERTY COMPILE_OPTIONS "-Wno-literal-range") + endif() target_link_libraries(${TARGET_NAME} jerry-math)