Skip to content

Commit

Permalink
MacOS release
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarnotel committed Dec 15, 2023
1 parent 423d657 commit ed7f412
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,18 @@ jobs:
run: |
PREFIX=${{ steps.version.outputs.prefix }}
# Create path
sudo mkdir -p "$PREFIX/gnu"
# Fortran check (get libraries)
FORTRAN_CHECK="$HOME/fortran-check"
mkdir "$FORTRAN_CHECK"
printf "program sizeofint\n integer i\nend" > "$FORTRAN_CHECK/check.f90"
printf "program sizeofint\n integer i\nend" >"$FORTRAN_CHECK/check.f90"
gfortran "$FORTRAN_CHECK/check.f90" -o "$FORTRAN_CHECK/check"
(ldd "$FORTRAN_CHECK/check") 2>&1 | awk '{print $NF}'| egrep -v '/usr/lib | "$FORTRAN_CHECK/check" | sudo grep .dylib' >$PREFIX/gnu/list-dylib-gfortran
(ldd "$FORTRAN_CHECK/check") 2>&1 | sudo awk '{print $NF}' | egrep -v '/usr/lib | "$FORTRAN_CHECK/check" | grep .dylib' >$PREFIX/gnu/list-dylib-gfortran
rm -rf "$FORTRAN_CHECK"
# Copy librairies
BREW_LIB_GFORTRAN=$(grep gfortran "$PREFIX/gnu/list-dylib-gfortran")
BREW_LIB_QUADMATH=$(grep libquadmath "$PREFIX/gnu/list-dylib-gfortran")
Expand All @@ -62,7 +65,7 @@ jobs:
cd "$PREFIX/gnu"
sudo ln -sf libgfortran.?.dylib libgfortran.dylib
sudo ln -sf libquadmath.?.dylib libquadmath.dylib
sudo ln -sf libquadmath.?.dylib libquadmath.dylib
- name: Configure
run: |
Expand Down

0 comments on commit ed7f412

Please sign in to comment.