Skip to content

Commit 593705a

Browse files
committed
Simplify test-fortran CI workflow
1 parent 8f86e4d commit 593705a

File tree

4 files changed

+38
-90
lines changed

4 files changed

+38
-90
lines changed

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

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

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

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

.github/workflows/test-fortran.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: fortran
2+
on:
3+
push:
4+
branches:
5+
- latest
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
test:
11+
name: ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
include:
16+
- os: ubuntu-latest
17+
compiler: gcc
18+
version: 12
19+
- os: ubuntu-latest
20+
compiler: gcc
21+
version: 13
22+
- os: macos-13
23+
compiler: gcc
24+
version: 11
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: fortran-lang/setup-fortran@v1
28+
id: setup-fortran
29+
with:
30+
compiler: ${{ matrix.compiler }}
31+
version: ${{ matrix.version }}
32+
- run: |
33+
cmake -E make_directory ${{runner.workspace}}/build
34+
cd build
35+
cmake $GITHUB_WORKSPACE -DFORTRAN=ON
36+
cmake --build . --parallel
37+
./bin/fortrantest

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
types: [opened, synchronize, reopened]
99
jobs:
1010
test:
11-
name: Python ${{ matrix.os }}
11+
name: ${{ matrix.os }}
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
fail-fast: false

0 commit comments

Comments
 (0)