Skip to content

Commit

Permalink
update fortran symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarnotel committed Dec 8, 2023
1 parent 8ae290c commit 936924f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 12 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/job1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
matrix:
version: [20.04, 22.04]

continue-on-error: true
name: Job1 - Ubuntu ${{ matrix.version }}
runs-on: ubuntu-${{ matrix.version }}

Expand All @@ -25,7 +26,8 @@ jobs:
run: make -j2

- name: Check
run: make check || true
continue-on-error: true
run: make check

- name: Install
run: make install
Expand All @@ -35,6 +37,7 @@ jobs:
matrix:
version: [11, 12]

continue-on-error: true
name: Job1 - MacOS ${{ matrix.version }}
runs-on: macos-${{ matrix.version }}

Expand All @@ -50,8 +53,15 @@ jobs:
- name: Install
run: brew install gcc m4 git flex bison

- name: Setup GNU Fortran
uses: modflowpy/install-gfortran-action@v1
- name: Symlink GCC & Fortran
run: |
sudo ln -fs /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
sudo ln -fs /usr/local/bin/gcc-12 /usr/local/bin/gcc
sudo ln -fs /usr/local/bin/g++-12 /usr/local/bin/g++
# symlink dylib location for previous versions
sudo ln -fs /usr/local/opt/gcc/lib/gcc/12 /usr/local/opt/gcc/lib/gcc/11
sudo ln -fs /usr/local/opt/gcc/lib/gcc/12 /usr/local/opt/gcc/lib/gcc/10
- name: Configure
run: |
Expand All @@ -62,7 +72,8 @@ jobs:
run: make -j2

- name: Check
run: make check || true
continue-on-error: true
run: make check

- name: Install
run: make install
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/job2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
matrix:
version: [20.04, 22.04]

continue-on-error: true
name: Job1 - Ubuntu ${{ matrix.version }}
runs-on: ubuntu-${{ matrix.version }}

Expand All @@ -28,7 +29,8 @@ jobs:
run: make -j2

- name: Check
run: make check || true
continue-on-error: true
run: make check

- name: Install
run: make install
Expand All @@ -38,6 +40,7 @@ jobs:
matrix:
version: [11, 12]

continue-on-error: true
name: Job1 - MacOS ${{ matrix.version }}
runs-on: macos-${{ matrix.version }}

Expand All @@ -53,8 +56,15 @@ jobs:
- name: Install
run: brew install gcc m4 git flex bison suitesparse hdf5

- name: Setup GNU Fortran
uses: modflowpy/install-gfortran-action@v1
- name: Symlink GCC & Fortran
run: |
sudo ln -fs /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
sudo ln -fs /usr/local/bin/gcc-12 /usr/local/bin/gcc
sudo ln -fs /usr/local/bin/g++-12 /usr/local/bin/g++
# symlink dylib location for previous versions
sudo ln -fs /usr/local/opt/gcc/lib/gcc/12 /usr/local/opt/gcc/lib/gcc/11
sudo ln -fs /usr/local/opt/gcc/lib/gcc/12 /usr/local/opt/gcc/lib/gcc/10
- name: Configure
run: |
Expand All @@ -65,7 +75,8 @@ jobs:
run: make -j2

- name: Check
run: make check || true
continue-on-error: true
run: make check

- name: Install
run: make install
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/job3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
matrix:
version: [20.04, 22.04]

continue-on-error: true
name: Job1 - Ubuntu ${{ matrix.version }}
runs-on: ubuntu-${{ matrix.version }}

Expand All @@ -30,7 +31,8 @@ jobs:
run: make -j2

- name: Check
run: make check || true
continue-on-error: true
run: make check

- name: Install
run: make install
Expand All @@ -40,6 +42,7 @@ jobs:
matrix:
version: [11, 12]

continue-on-error: true
name: Job1 - MacOS ${{ matrix.version }}
runs-on: macos-${{ matrix.version }}

Expand All @@ -55,8 +58,15 @@ jobs:
- name: Install
run: brew install gcc m4 git flex bison suitesparse hdf5 cmake wget autoconf automake

- name: Setup GNU Fortran
uses: modflowpy/install-gfortran-action@v1
- name: Symlink GCC & Fortran
run: |
sudo ln -fs /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
sudo ln -fs /usr/local/bin/gcc-12 /usr/local/bin/gcc
sudo ln -fs /usr/local/bin/g++-12 /usr/local/bin/g++
# symlink dylib location for previous versions
sudo ln -fs /usr/local/opt/gcc/lib/gcc/12 /usr/local/opt/gcc/lib/gcc/11
sudo ln -fs /usr/local/opt/gcc/lib/gcc/12 /usr/local/opt/gcc/lib/gcc/10
- name: Configure
run: |
Expand All @@ -68,7 +78,8 @@ jobs:
run: make -j2

- name: Check
run: make check || true
continue-on-error: true
run: make check

- name: Install
run: make install
Expand Down

0 comments on commit 936924f

Please sign in to comment.