Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 21, 2025
1 parent aec1ee1 commit e575160
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions .github/meson/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,50 @@ runs:
meson compile -C builddir
meson install -C builddir
- name: Install MUMPS
if: inputs.os == 'ubuntu-latest' && inputs.compiler == 'gcc'
shell: bash
run: |
cd ..
mkdir -p deps
VERSION_MUMPS="5.7.2"
VERSION_METIS="5.1.2"
VERSION_OPENBLAS32="0.3.27"
VERSION_OPENBLAS="0.3.27"
wget https://github.com/amontoison/MUMPS_seq_jll.jl/releases/download/MUMPS_seq-v${VERSION_MUMPS}%2B0/MUMPS_seq.v${VERSION_MUMPS}.$PLATFORM-libgfortran5.tar.gz
tar -xzvf MUMPS_seq.v${VERSION_MUMPS}.$PLATFORM-libgfortran5.tar.gz -C deps
wget https://github.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/releases/download/OpenBLAS-v${VERSION_OPENBLAS}%2B1/OpenBLAS.v${VERSION_OPENBLAS}.$PLATFORM-libgfortran5.tar.gz
tar -xzvf OpenBLAS.v${VERSION_OPENBLAS}.$PLATFORM-libgfortran5.tar.gz -C deps
wget https://github.com/JuliaBinaryWrappers/OpenBLAS32_jll.jl/releases/download/OpenBLAS32-v${VERSION_OPENBLAS32}%2B1/OpenBLAS32.v${VERSION_OPENBLAS32}.$PLATFORM-libgfortran5.tar.gz
tar -xzvf OpenBLAS32.v${VERSION_OPENBLAS32}.$PLATFORM-libgfortran5.tar.gz -C deps
wget https://github.com/JuliaBinaryWrappers/METIS_jll.jl/releases/download/METIS-v${VERSION_METIS}%2B0/METIS.v${VERSION_METIS}.$PLATFORM.tar.gz
tar -xzvf METIS.v${VERSION_METIS}.$PLATFORM.tar.gz -C deps
- name: Install libHSL
if: inputs.os != 'windows-latest'
shell: bash
run: |
# self-hosted runner
if [[ "$HOSTNAME" == "moonshot" ]]; then
INT64="false"
if [[ "${{ inputs.int }}" == "64" ]]; then
INT64="true"
BLAS="openblas64_"
LAPACK="openblas64_"
else
INT64="false"
BLAS="openblas"
LAPACK="openblas"
fi
BLAS_PATH="$DEPS/deps/$LIBDIR"
LAPACK_PATH="$DEPS/deps/$LIBDIR"
cd /scratch/github-actions/actions_runner_galahad/hsl_subset
rm -rf builddir
meson setup builddir --buildtype=debug \
--prefix=$DEPS/deps \
-Dlibblas=${BLAS} \
-Dliblapack=${LAPACK} \
-Dlibblas_path=${BLAS_PATH} \
-Dliblapack_path=${LAPACK_PATH} \
-Dquadruple=true \
-Ddefault_library=shared \
-Dint64=${INT64}
Expand All @@ -165,25 +195,6 @@ runs:
meson install -C builddir
fi
- name: Install MUMPS
if: inputs.os == 'ubuntu-latest' && inputs.compiler == 'gcc'
shell: bash
run: |
cd ..
mkdir -p deps
VERSION_MUMPS="5.7.2"
VERSION_METIS="5.1.2"
VERSION_OPENBLAS32="0.3.27"
VERSION_OPENBLAS="0.3.27"
wget https://github.com/amontoison/MUMPS_seq_jll.jl/releases/download/MUMPS_seq-v${VERSION_MUMPS}%2B0/MUMPS_seq.v${VERSION_MUMPS}.$PLATFORM-libgfortran5.tar.gz
tar -xzvf MUMPS_seq.v${VERSION_MUMPS}.$PLATFORM-libgfortran5.tar.gz -C deps
wget https://github.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/releases/download/OpenBLAS-v${VERSION_OPENBLAS}%2B1/OpenBLAS.v${VERSION_OPENBLAS}.$PLATFORM-libgfortran5.tar.gz
tar -xzvf OpenBLAS.v${VERSION_OPENBLAS}.$PLATFORM-libgfortran5.tar.gz -C deps
wget https://github.com/JuliaBinaryWrappers/OpenBLAS32_jll.jl/releases/download/OpenBLAS32-v${VERSION_OPENBLAS32}%2B1/OpenBLAS32.v${VERSION_OPENBLAS32}.$PLATFORM-libgfortran5.tar.gz
tar -xzvf OpenBLAS32.v${VERSION_OPENBLAS32}.$PLATFORM-libgfortran5.tar.gz -C deps
wget https://github.com/JuliaBinaryWrappers/METIS_jll.jl/releases/download/METIS-v${VERSION_METIS}%2B0/METIS.v${VERSION_METIS}.$PLATFORM.tar.gz
tar -xzvf METIS.v${VERSION_METIS}.$PLATFORM.tar.gz -C deps
- name: Install MKL
if: inputs.os == 'ubuntu-latest' && inputs.compiler == 'intel'
shell: bash
Expand Down

0 comments on commit e575160

Please sign in to comment.