-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathossetup
28 lines (27 loc) · 1.27 KB
/
ossetup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RUNNER_OS="$1"
if [ "$RUNNER_OS" == "Linux" ]; then
# note: using 'apt-get -o Acquire::Retries=3' to dance around connectivity issues to Azure,
# use apt-spy2 to select closest apt mirror,
# which helps avoid connectivity issues in Azure;
# see https://github.com/actions/virtual-environments/issues/675
# APT-SPY2 fails also
# sudo gem install apt-spy2
# sudo apt-spy2 check
# sudo apt-spy2 fix --commit
# after selecting a specific mirror, we need to run 'apt-get update'
sudo apt-get update -o Acquire::Retries=3
sudo apt-get install libopenmpi-dev openmpi-bin libsuperlu-dev libsuitesparse-dev petsc-dev paraview python3-paraview gmsh libboost-all-dev python3-numpy python3-matplotlib python3-scipy python3-mpi4py python3-ufl python3-petsc4py-real
elif [ "$RUNNER_OS" == "macOS" ]; then
# fixes an issue with homebrew can probably be remove once the issue is resolved
# https://github.com/orgs/Homebrew/discussions/4612#discussioncomment-6356325
export HOMEBREW_NO_INSTALL_FROM_API=
brew config
brew untap homebrew/core homebrew/cask
brew config
# normal service resumes...
brew update
brew install [email protected] || true
brew install [email protected] || true
brew install openmpi suite-sparse gmsh boost pkg-config || true
# + superlu (is failing currently)
fi