diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d547fcf..f06d739 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,15 +5,20 @@ on: branches: [ tui ] env: - OS: ubuntu-latest - COMPILER_CC: gcc - COMPILER_CPP: g++ BUILD_TYPE: Release jobs: build: name: Tests - runs-on: ${{ env.OS }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - name: Linux GCC + os: ubuntu-latest + compiler_cc: gcc + compiler_cpp: g++ + steps: - name: Checkout uses: actions/checkout@v4 @@ -25,7 +30,7 @@ jobs: ninjaVersion: "^1.0" # use most recent 1.x version - name: CMake Setup - run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_C_COMPILER=${{env.COMPILER_CC}} CMAKE_CXX_COMPILER=${{env.COMPILER_Cpp}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -S . -B ${{github.workspace}}/build -G Ninja -D CMAKE_C_COMPILER=${{matrix.compiler_cc}} CMAKE_CXX_COMPILER=${{matrix.compiler_cpp}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: CMake Build run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target tests