Skip to content

Commit

Permalink
[build] use ghcr.io images when testing PR
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Feb 21, 2024
1 parent 4a74649 commit 9abbf7a
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build_PR.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
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:

strategy:
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

0 comments on commit 9abbf7a

Please sign in to comment.