Skip to content

Commit 46a02fc

Browse files
authored
Merge pull request #56 from Goddard-Fortran-Ecosystem/feature/mathomp4/update-ci-gftlshared
Update GitHub Actions
2 parents 2fda901 + b493143 commit 46a02fc

File tree

2 files changed

+52
-13
lines changed

2 files changed

+52
-13
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,48 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-20.04, macos-10.15, macos-11]
18-
compiler: [gfortran-8, gfortran-9, gfortran-10]
17+
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
18+
compiler: [gfortran-9, gfortran-10, gfortran-11, gfortran-12]
1919
exclude:
20-
- os: macos-10.15
21-
compiler: gfortran-8
20+
- os: ubuntu-20.04
21+
compiler: gfortran-11
22+
- os: ubuntu-20.04
23+
compiler: gfortran-12
24+
- os: ubuntu-22.04
25+
compiler: gfortran-9
2226
- os: macos-11
23-
compiler: gfortran-8
27+
compiler: gfortran-12
28+
- os: macos-12
29+
compiler: gfortran-9
30+
- os: macos-12
31+
compiler: gfortran-10
32+
- os: macos-12
33+
compiler: gfortran-12
34+
35+
# fail-fast if set to 'true' here is good for production, but when
36+
# debugging, set to 'false'. fail-fast means if *any* ci test in the matrix fails
37+
# GitHub Actions will stop any other test immediately. So good for production, bad
38+
# when trying to figure something out. For more info see:
39+
# https://www.edwardthomson.com/blog/github_actions_6_fail_fast_matrix_workflows.html
40+
2441
fail-fast: false
2542
env:
2643
FC: ${{ matrix.compiler }}
44+
LANGUAGE: en_US.UTF-8
45+
LC_ALL: en_US.UTF-8
46+
LANG: en_US.UTF-8
47+
LC_TYPE: en_US.UTF-8
48+
OMPI_ALLOW_RUN_AS_ROOT: 1
49+
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
50+
OMPI_MCA_btl_vader_single_copy_mechanism: none
2751

2852
name: ${{ matrix.os }} / ${{ matrix.compiler }}
2953
steps:
30-
- name: Install GCC 8 on Ubuntu 20
31-
if: matrix.os == 'ubuntu-20.04' && matrix.compiler == 'gfortran-8'
32-
run: |
33-
sudo apt-get install gfortran-8 -y
34-
- name: Install GCC 11 on Ubuntu 20
35-
if: matrix.os == 'ubuntu-20.04' && matrix.compiler == 'gfortran-11'
54+
- name: Install GCC 12 on Ubuntu 22.04
55+
if: matrix.os == 'ubuntu-22.04' && matrix.compiler == 'gfortran-12'
3656
run: |
37-
sudo apt-get install gfortran-11 -y
38-
- name: Versions
57+
sudo apt-get install gfortran-12 -y
58+
- name: Compiler Versions
3959
run: |
4060
${FC} --version
4161
cmake --version
@@ -49,6 +69,14 @@ jobs:
4969
cd build
5070
cmake .. -DCMAKE_Fortran_COMPILER=${FC}
5171
make -j$(nproc)
72+
- name: Archive log files on failure
73+
uses: actions/upload-artifact@v2
74+
if: failure()
75+
with:
76+
name: logfiles
77+
path: |
78+
build/**/*.log
79+
5280
5381
Nvidia:
5482
runs-on: ubuntu-20.04

ChangeLog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Fix use of `-Od` flag with Intel on non-Windows machines
1111

12+
### Changed
13+
14+
- Updated GitHub Actions
15+
- OSs
16+
- Remove macos-10.15
17+
- Add ubuntu-22.04 and macos-12
18+
- Compilers
19+
- Removed gfortran-8
20+
- Added gfortran-11
21+
- Added gfortran-12 (for ubuntu-22.04)
22+
1223
## [1.4.1] - 2022-03-23
1324

1425
### Changed

0 commit comments

Comments
 (0)