Skip to content

Commit b0e5964

Browse files
committed
ci: add job consuming this one as archive
This was a previous problem say from scivision/mumps
1 parent 78d8487 commit b0e5964

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,25 @@ jobs:
3838

3939

4040
runs-on: ${{ matrix.os }}
41-
timeout-minutes: 7
41+
timeout-minutes: 15
4242

4343
steps:
4444

45-
- name: install prereqs (Linux)
45+
- &linux-prereq
46+
name: install prereqs (Linux)
47+
timeout-minutes: 15
4648
if: runner.os == 'Linux'
4749
run: |
4850
sudo apt update
4951
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev
5052
5153
- name: install prereqs (macOS)
54+
timeout-minutes: 15
5255
if: runner.os == 'macOS'
5356
run: brew install open-mpi gcc
5457

55-
- uses: actions/checkout@v4
58+
- &checkout
59+
uses: actions/checkout@v4
5660

5761
- name: Config
5862
run: cmake -B build -DBUILD_SINGLE:BOOL=off -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
@@ -71,3 +75,18 @@ jobs:
7175

7276
- name: test
7377
run: ctest --test-dir example/build -V
78+
79+
# test this project used as an archive in other projects
80+
archive:
81+
timeout-minutes: 15
82+
83+
runs-on: ubuntu-latest
84+
85+
steps:
86+
- *linux-prereq
87+
- *checkout
88+
89+
- name: Test Scalapack as archive
90+
run: cmake -S example/other_project -B build
91+
92+
# if broken, the CMake configure step fails

0 commit comments

Comments
 (0)