From bae887a93c56c809161554f5a68fd0c64201413a Mon Sep 17 00:00:00 2001 From: Alexander Hampel Date: Wed, 21 Feb 2024 14:02:23 -0500 Subject: [PATCH] [build] use ghcr.io images when testing PR --- .github/workflows/build_PR.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_PR.yml b/.github/workflows/build_PR.yml index 18255ce6..4d593794 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,22 @@ 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: + - uses: actions/checkout@v4 + with: path: 'solid_dmft.src' - 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