Skip to content

Commit

Permalink
[ci] Add second test suite to cover Doxygen, Fortan, examples
Browse files Browse the repository at this point in the history
Test Clang besides GCC.
Drop matrix strategy as it is not used.
Do not build in parallel as it makes the output more difficult to read.
  • Loading branch information
gruenich committed Nov 25, 2023
1 parent c58522f commit ab7beae
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,42 @@ name: Test library
on: [push, pull_request]

jobs:
test:
name: Build and test
test-minimal-ubuntu:
name: Ubuntu minimal build and test
runs-on: ubuntu-latest

strategy:
matrix:
compiler:
- gcc
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get install cmake clang

- name: Configure
run: cmake -DCMAKE_C_COMPILER=clang -B build

- name: Build
run: cmake --build build

- name: Test
run: ctest --test-dir build --output-on-failure

test-extended-ubuntu:
name: Ubuntu extended build and test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get install cmake
run: sudo apt-get install cmake doxygen gcc gfortran

- name: Configure
run: cmake -B build
run: cmake -Denable_doc=on -Denable_fortran=on -B build

- name: Build
run: cmake --build build --parallel
run: cmake --build build

- name: Test
run: ctest --test-dir build --output-on-failure

0 comments on commit ab7beae

Please sign in to comment.