-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (48 loc) · 2.03 KB
/
ubuntu-python.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Ubuntu Python
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
ISSM_DIR: ${{ github.workspace }}
jobs:
build-test:
uses: ./.github/workflows/common-workflow.yml
with:
os: ubuntu-latest
build_type: basic-python-3.11
interface: python
python_version: 3.11
build_command: |
source $ISSM_DIR/etc/environment.sh
autoreconf -ivf
./configure --prefix=${ISSM_DIR} \
--disable-static \
--enable-development \
--enable-debugging \
--with-numthreads=4 \
--with-python-version=3.11 \
--with-python-dir=$PYTHON_ROOT \
--with-python-numpy-dir=$NUMPY_ROOT \
--with-fortran-lib="-L/usr/lib/x86_64-linux-gnu -lgfortran" \
--with-mpi-include="${ISSM_DIR}/externalpackages/petsc/install/include" \
--with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
--with-petsc-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-blas-lapack-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-metis-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-parmetis-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-scalapack-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-mumps-dir="${ISSM_DIR}/externalpackages/petsc/install" \
--with-triangle-dir="${ISSM_DIR}/externalpackages/triangle/install" \
--with-semic-dir="${ISSM_DIR}/externalpackages/semic/install" \
--with-m1qn3-dir="${ISSM_DIR}/externalpackages/m1qn3/install"
ext_install_command: |
cd $ISSM_DIR/externalpackages/triangle && ./install-linux.sh
cd $ISSM_DIR/externalpackages/m1qn3 && ./install-linux.sh
cd $ISSM_DIR/externalpackages/petsc && ./install-3.22-linux.sh
cd $ISSM_DIR/externalpackages/semic && ./install.sh
test_cases: '["range(101,400)", "range(401, 900)"]'
additional_options: " "
secrets: inherit
name: build-test-ubuntu-python