diff --git a/.github/workflows/build_PR.yml b/.github/workflows/build_PR.yml index 18255ce6..0a3c509b 100644 --- a/.github/workflows/build_PR.yml +++ b/.github/workflows/build_PR.yml @@ -1,9 +1,17 @@ -name: build +name: build_PR on: pull_request: branches: [ unstable ] +env: + CMAKE_BUILD_PARALLEL_LEVEL: 2 + CTEST_PARALLEL_LEVEL: 1 + CTEST_OUTPUT_ON_FAILURE: 1 + OMPI_ALLOW_RUN_AS_ROOT: 1 + OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 + OMPI_MCA_rmaps_base_oversubscribe: "yes" + jobs: build: @@ -11,23 +19,20 @@ jobs: fail-fast: false runs-on: ubuntu-latest - container: - image: materialstheory/solid_dmft_ci + container: + image: ghcr.io/triqs/solid_dmft_github_ci:unstable steps: - - uses: actions/checkout@v2 - with: - path: 'solid_dmft.src' + - uses: actions/checkout@v4 - name: Build solid_dmft run: | - mkdir solid_dmft.build && cd solid_dmft.build && cmake ../solid_dmft.src -DMPIEXEC_PREFLAGS='--allow-run-as-root' - make + cmake -S . -B build/ -DBuild_Documentation=OFF + cmake --build build/ --verbose - name: Test solid_dmft run: | - cd solid_dmft.build - ctest --output-on-failure + cmake --build build/ --target test