Reorder the directories add scripts for cleaning, running and linking; update precice function documentation for doxygen #25
Workflow file for this run
This file contains 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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
env: | |
BUILD_TYPE: RelWithDebInfo | |
PRECICE_VERSION: v3.1.2 | |
jobs: | |
build: | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: gismo/gismo | |
ref: stable | |
path: ./gismo | |
- uses: actions/checkout@v3 | |
with: | |
path: ./gismo/optional/${{ github.event.repository.name }} | |
- name: Install preCICE | |
run: | | |
if [[ "$RUNNER_OS" == "Linux" ]]; then | |
sudo apt update | |
sudo apt install -y build-essential cmake libeigen3-dev libxml2-dev libboost-all-dev petsc-dev python3-dev python3-numpy | |
elif [[ "$RUNNER_OS" == "macOS" ]]; then | |
brew install cmake eigen libxml2 boost petsc openmpi python3 numpy | |
fi | |
wget https://github.com/precice/precice/archive/$PRECICE_VERSION.tar.gz | |
tar -xzvf $PRECICE_VERSION.tar.gz | |
cd precice-${PRECICE_VERSION/v/} | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. | |
make -j 10 | |
sudo make install | |
export precice_DIR=$(pwd)/.. | |
- name: Run Tests | |
shell: bash | |
working-directory: ${{ github.workspace }} | |
run: | | |
ctest -S ${{ github.repository }}/gismo/cmake/ctest_script.cmake \ | |
-D CTEST_BUILD_NAME="${{ github.repository }}_actions_$GITHUB_RUN_NUMBER" \ | |
-D CTEST_SITE="${{ matrix.os }}_[actions]" \ | |
-D LABELS_FOR_SUBPROJECTS="gsPreCICE-examples" \ | |
-D CMAKE_ARGS="-DCMAKE_BUILD_TYPE=$BUILD_TYPE;-DCMAKE_CXX_STANDARD=11;-DGISMO_WITH_XDEBUG=ON;-DGISMO_BUILD_UNITTESTS=ON;-Dprecice_DIR=$precice_DIR" \ | |
-D GISMO_OPTIONAL="gsElasticity\\;${{ github.repository }}" |