-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] use ghcr.io images when testing PR
- Loading branch information
1 parent
4a74649
commit 9abbf7a
Showing
1 changed file
with
15 additions
and
10 deletions.
There are no files selected for viewing
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
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 | ||