Skip to content

Commit

Permalink
split test and ci again
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSiebert1 committed Nov 19, 2024
1 parent ba31df9 commit 02984c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

name: Run Tests
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build-and-test:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -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
Expand All @@ -37,8 +32,6 @@ jobs:
-B .
cmake --build .
- name: Run Tests
run: ctest --test-dir build/ --output-on-failure



16 changes: 12 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 .
Expand Down

0 comments on commit 02984c8

Please sign in to comment.