Skip to content

Commit 7dd92d1

Browse files
committed
Simplify various CI workflows
1 parent 54b3012 commit 7dd92d1

11 files changed

+89
-487
lines changed

.github/workflows/cmake-cpp.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CMake
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: ${{ matrix.os }} CMAKE_BUILD_TYPE=${{ matrix.build_type }} ALL_TESTS=${{ matrix.all_tests }}
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
11+
build_type: ['Release', 'Debug']
12+
all_tests: ['OFF', 'ON']
13+
steps:
14+
- uses: actions/checkout@v4
15+
- shell: bash
16+
run: |
17+
cmake -E make_directory "$GITHUB_WORKSPACE/build"
18+
cd build
19+
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
20+
cmake $GITHUB_WORKSPACE -DALL_TESTS=${{ matrix.all_tests }}
21+
cmake --build . --parallel --config ${{ matrix.build_type }}
22+
ctest --timeout 300 --output-on-failure -C ${{ matrix.build_type }}
23+
else
24+
cmake $GITHUB_WORKSPACE -DALL_TESTS=${{ matrix.all_tests }} \
25+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
26+
cmake --build . --parallel
27+
ctest --timeout 300 --output-on-failure --parallel
28+
fi

.github/workflows/cmake-linux-cpp.yml

Lines changed: 0 additions & 101 deletions
This file was deleted.

.github/workflows/cmake-macos-cpp.yml

Lines changed: 0 additions & 101 deletions
This file was deleted.

.github/workflows/cmake-windows-cpp.yml

Lines changed: 0 additions & 100 deletions
This file was deleted.

.github/workflows/test-fortran-macos.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)