CSR matrix 3D poisson #10
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: 'Module bilaplacian' | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- bilaplacian/** | |
pull_request: | |
branches: [ main ] | |
paths: | |
- bilaplacian/** | |
workflow_dispatch: | |
env: | |
SOURCE_DIR: '/__w/arcanefem/arcanefem/src' | |
BUILD_DIR: '/__w/arcanefem/arcanefem/build' | |
MODULE_DIR: 'bilaplacian' | |
# CTest | |
CT_RESULT_DIR: '/__w/arcanefem/arcanefem/test' | |
CT_OPTS: "--timeout 300 --output-on-failure" | |
# MPI | |
OMPI_ALLOW_RUN_AS_ROOT: 1 | |
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | |
OMPI_MCA_rmaps_base_oversubscribe: 1 | |
jobs: | |
tests: | |
name: 'Build and Test' | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_full_check_latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.SOURCE_DIR }} | |
- name: Configure | |
shell: bash | |
run: | | |
cmake \ | |
-S ${{ env.SOURCE_DIR }} \ | |
-B ${{ env.BUILD_DIR }} \ | |
-GNinja | |
- name: Build | |
shell: bash | |
run: | | |
cmake --build ${{ env.BUILD_DIR }} | |
- name: Test | |
shell: bash | |
run: | | |
mkdir -p ${{ env.CT_RESULT_DIR }} | |
ctest --test-dir ${{ env.BUILD_DIR }} --output-junit ${{ env.CT_RESULT_DIR }}/results.xml ${{ env.CT_OPTS }} -R '\[${{ env.MODULE_DIR }}\]' | |
- name: Upload test artifact | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: tests-${{ env.MODULE_DIR }}-artifact | |
path: ${{ env.CT_RESULT_DIR }} | |
retention-days: 7 |