Also needed to clean up import and check on static generic class in w… #766
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ubuntu Python | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - ".github/workflows/common-workflow.yml" | |
| - ".github/workflows/ubuntu-python.yml" | |
| - "etc/**" | |
| - "externalpackages/**" | |
| - "m4/**" | |
| - "src/**" | |
| - "test/**" | |
| - "Makefile.am" | |
| - "configure.ac" | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - ".github/workflows/common-workflow.yml" | |
| - ".github/workflows/ubuntu-basic.yml" | |
| - "etc/**" | |
| - "externalpackages/**" | |
| - "m4/**" | |
| - "src/**" | |
| - "test/**" | |
| - "Makefile.am" | |
| - "configure.ac" | |
| env: | |
| ISSM_DIR: ${{ github.workspace }} | |
| jobs: | |
| build-test: | |
| uses: ./.github/workflows/common-workflow.yml | |
| with: | |
| os: ubuntu-latest | |
| build_type: basic-python | |
| interface: python | |
| python_version: 3.12 | |
| build_command: | | |
| source $ISSM_DIR/etc/environment.sh | |
| autoreconf -ivf | |
| ls ${ISSM_DIR}/externalpackages/petsc/install/bin/ | |
| which mpicxx | |
| ./configure \ | |
| --prefix=${ISSM_DIR} \ | |
| --disable-static \ | |
| --enable-development \ | |
| --enable-debugging \ | |
| --with-numthreads=4 \ | |
| --with-python=${PYTHON_ROOT}/bin/python3 \ | |
| --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" | |
| ext_pkg_build_command: | | |
| cd $ISSM_DIR/externalpackages/triangle && ./install-linux.sh | |
| cd $ISSM_DIR/externalpackages/petsc && ./install-3.22-linux.sh | |
| cd $ISSM_DIR/externalpackages/semic && ./install.sh | |
| test_cases: '["101:399", "401:899"]' | |
| additional_options: " " | |
| secrets: inherit | |
| name: build-test-ubuntu-python |