From ed7f412abae5f4b01b948c32a4d86b8fe48c9fb9 Mon Sep 17 00:00:00 2001 From: Simon Garnotel Date: Fri, 15 Dec 2023 10:03:00 +0100 Subject: [PATCH] MacOS release --- .github/workflows/release-dmg.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-dmg.yml b/.github/workflows/release-dmg.yml index 2d3b56735..ec8f7b97f 100644 --- a/.github/workflows/release-dmg.yml +++ b/.github/workflows/release-dmg.yml @@ -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") @@ -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: |