diff --git a/.github/workflows/wideint-ci-workflow.yaml b/.github/workflows/wideint-ci-workflow.yaml index 41757ab..445d3af 100644 --- a/.github/workflows/wideint-ci-workflow.yaml +++ b/.github/workflows/wideint-ci-workflow.yaml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: windows: name: Windows ${{ matrix.config.name }} - runs-on: windows-latest + runs-on: windows-2022 strategy: matrix: @@ -19,7 +19,7 @@ jobs: cmake-flags: -A x64 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Configure run: cmake -G "${{ matrix.config.generator }}" ${{ matrix.config.cmake-flags }} -B build @@ -51,13 +51,13 @@ jobs: cmake-flags: -DCMAKE_CXX_FLAGS_DEBUG='-O1 -g -fsanitize=address -fno-omit-frame-pointer' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Configure run: cmake ${{ matrix.config.cmake-flags }} -DCMAKE_BUILD_TYPE=Debug -B build - name: Build - run: cd build && make VERBOSE=1 + run: cd build && cmake --build . --verbose - name: Test run: cd build && ctest -V --output-on-failure --interactive-debug-mode 0 diff --git a/CMakeLists.txt b/CMakeLists.txt index 1af55d5..769fa97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ include(CTest) if(MSVC) add_compile_options(/W3) -else() +elseif(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang") add_compile_options(-Wall -Wextra -pedantic) endif()