-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.54 KB
/
test_gfortran.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Test gfortran
on:
# Trigger the workflow on push or pull request
push:
pull_request:
# Trigger the workflow at the end of every week
schedule:
- cron: '0 0 * * 0'
# Trigger the workflow when it is manually triggered
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-20.04, macos-latest, macos-11, windows-latest, windows-2019]
compiler: [gcc]
version: [13, 12, 11, 10]
exclude:
- os: ubuntu-20.04
version: 12
- os: ubuntu-20.04
version: 13
- os: windows-latest
version: 13
- os: windows-2019
version: 13
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS
submodules: recursive
- name: Setup Fortran
id: setup_fortran
# Use the action defined at github.com/awvwgk/setup-fortran@main to setup Fortran
uses: awvwgk/setup-fortran@main
with:
compiler: ${{ matrix.compiler }}
version: ${{ matrix.version }}
- name: Check Fortran compiler
run: |
${{ env.FC }} --version
${{ env.CC }} --version
shell: bash
env:
FC: ${{ steps.setup_fortran.outputs.fc }}
CC: ${{ steps.setup_fortran.outputs.cc }}
- name: Conduct the test
run: cd test; make gtest