From 02984c883e09761524028f76b1e6d332eb839d5d Mon Sep 17 00:00:00 2001 From: Tim Siebert Date: Tue, 19 Nov 2024 07:23:52 +0100 Subject: [PATCH] split test and ci again --- .github/workflows/ci.yml | 11 ++--------- .github/workflows/tests.yml | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 847a898b..d16cdbec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ -name: Run Tests +name: Build on: push: branches: [ "master" ] @@ -7,7 +7,7 @@ on: branches: [ "master" ] jobs: - build-and-test: + build: runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -19,11 +19,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Boost - shell: bash - run: | - sudo apt-get install libboost-all-dev - - name: Configure and build ADOL-C run: | mkdir build @@ -37,8 +32,6 @@ jobs: -B . cmake --build . - - name: Run Tests - run: ctest --test-dir build/ --output-on-failure \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4f2e4370..158746cb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,8 +7,15 @@ on: branches: [ "master" ] jobs: - run-tests: + run-tests: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + build_type: [Release, Debug] + c_compiler: [gcc, clang] + cpp_compiler: [g++, clang++] + steps: - uses: actions/checkout@v4 @@ -22,9 +29,10 @@ jobs: mkdir build cd build cmake \ - -DCMAKE_CXX_COMPILER=g++ \ - -DCMAKE_C_COMPILER=gcc \ - -DCMAKE_BUILD_TYPE=Tests \ + -DCMAKE_CXX_COMPILER= ${{ matrix.cpp_compiler}} \ + -DCMAKE_C_COMPILER= ${{ matrix.c_compiler}} \ + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ + -DBUILD_TESTS=ON \ -S .. \ -B . cmake --build .