Skip to content

Commit

Permalink
Add workflow to test all gcc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ftessier committed Aug 3, 2023
1 parent 342f8ba commit d950063
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
brew install tcl-tk
brew install openmotif
- name: Check versions
- name: Compiler versions
run: |
gfortran --version
gcc --version
Expand All @@ -57,5 +57,5 @@ jobs:
- name: Build EGSnrc
run: |
HEN_HOUSE/scripts/configure.expect ${{ runner.os }}.conf | tee configure.log
cat *.log log/*.log
(! grep -i fail *.log log/*.log)
for f in HEN_HOUSE/log/*.log configure.log; do echo $f; cat $f; done
(! grep -i fail configure.log)
45 changes: 45 additions & 0 deletions .github/workflows/check-gcc-versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Compiler versions

on:
workflow_call:

jobs:

gcc-versions:
name: gcc versions

strategy:
matrix:
gcc-version: [4.8, 5, 6, 7, 8, 9]
os: [ubuntu-18.04]

runs-on: ${{ matrix.os }}

steps:

- name: Install dependencies
if: matrix.os == 'ubuntu-18.04'
run: |
sudo apt-get update -q
sudo apt remove -qy gcc g++
sudo apt install gfortran
sudo apt install gcc-${{ matrix.gcc-version }}
sudo apt install g++-${{ matrix.gcc-version }}
sudo apt-get install -qy expect
sudo apt-get install -qy libmotif-dev
- name: Compiler versions
run: |
gfortran --version
gcc --version
g++ --version
make --version
- name: Checkout
uses: actions/checkout@v3

- name: Build EGSnrc
run: |
HEN_HOUSE/scripts/configure.expect ${{ runner.os }}.conf | tee configure.log
cat *.log log/*.log
(! grep -i fail *.log log/*.log)

0 comments on commit d950063

Please sign in to comment.