Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSiebert1 committed Nov 19, 2024
1 parent e482847 commit 0645eae
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 43 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on: ["push", "pull_request"]
name: Test Coverage

jobs:

build:
run-coverage:
name: Build
runs-on: ubuntu-latest
steps:
Expand Down
82 changes: 41 additions & 41 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,45 @@ on:
branches: [ "master" ]

jobs:
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
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

- name: Install Boost
shell: bash
run: |
sudo apt-get install libboost-all-dev
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure and build ADOL-C
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DBUILD_TESTS=ON \
-S ${{ github.workspace }}
- name: Build ADOL-C
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Install Boost
shell: bash
run: |
sudo apt-get install libboost-all-dev
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure and build ADOL-C
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DBUILD_TESTS=ON \
-S ${{ github.workspace }}
- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Run Tests
run: ctest --test-dir ${{ steps.strings.outputs.build-output-dir }} --output-on-failure



- name: Run Tests
run: ctest --test-dir ${{ steps.strings.outputs.build-output-dir }} --output-on-failure



0 comments on commit 0645eae

Please sign in to comment.