From 5359d37244e099db15b7aa8070ec96def1804d17 Mon Sep 17 00:00:00 2001 From: Danilo Horta Date: Thu, 7 Nov 2024 16:02:33 +0000 Subject: [PATCH] Simplify GitHub Actions workflow test job configuration - Updated `test.yml` to simplify test job steps. - Removed build type matrix: `Release`, `Debug`. - Expanded OS matrix: added `ubuntu-24.04`, `macos-14`, `macos-15`. - Replaced multi-platform CMake configurations with `make` command. Streamlining the workflow reduces complexity and maintenance overhead. Using the expanded OS options ensures broader testing coverage. Switching to `make` aligns with our build strategy and removes redundant configuration steps. --- .github/workflows/test.yml | 43 ++++++-------------------------------- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b558e4..615b606 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,46 +4,15 @@ on: push jobs: test: - name: Test on ${{ matrix.os }} with build type ${{ matrix.build_type }} + name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-22.04, macos-12, macos-13, windows-2022] - build_type: [Release, Debug] + os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14, macos-15, windows-2022] steps: - uses: actions/checkout@v4 - - - name: Configure CMake - if: runner.os == 'Linux' - run: > - cmake - -B ${{github.workspace}}/build - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} - -DUSE_SANITIZER='Address;Undefined' - -DENABLE_ALL_WARNINGS=ON - - - name: Configure CMake - if: runner.os == 'macOS' - run: > - cmake - -B ${{github.workspace}}/build - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} - -DENABLE_ALL_WARNINGS=ON - - - name: Configure CMake - if: runner.os == 'Windows' - run: > - cmake - -B ${{github.workspace}}/build - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} - - - name: Build - run: > - cmake - --build ${{github.workspace}}/build - --config ${{matrix.build_type}} - - - name: Test - working-directory: ${{github.workspace}}/build - run: ctest -C ${{matrix.build_type}} --output-on-failure + - name: make + run: make + - name: make check + run: make check