Skip to content

Commit

Permalink
Configure GitHub Actions
Browse files Browse the repository at this point in the history
Enable new matrix job for openmp offload build only
  • Loading branch information
williamfgc committed May 13, 2021
1 parent df94c87 commit 4a2f7cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
gcc-openmpi-complex-coverage,
clang-openmpi-real-asan,
clang-openmpi-complex-asan,
clang-openmpi-real-ubsan
clang-openmpi-real-ubsan,
clang-latest-openmp-offload-build
]
include:
- jobname: gcc-openmpi-real-coverage
Expand All @@ -52,6 +53,11 @@ jobs:
container:
image: williamfgc/qmcpack-ci:ubuntu20-openmpi
options: -u 1001

- jobname: clang-latest-openmp-offload-build
container:
image: williamfgc/qmcpack-ci:ubuntu20-clang-latest
options: -u 1001

steps:
- name: Checkout Action
Expand All @@ -64,6 +70,7 @@ jobs:
run: tests/test_automation/github-actions/ci/run_step.sh build

- name: Test
if: "!contains(matrix.jobname, 'build')"
run: tests/test_automation/github-actions/ci/run_step.sh test

- name: Coverage
Expand Down
7 changes: 7 additions & 0 deletions tests/test_automation/github-actions/ci/run_step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ case "$1" in
-DQMC_COMPLEX=$IS_COMPLEX \
${GITHUB_WORKSPACE}
;;
*"offload-build"*)
echo 'Configure for building OpenMP offload with clang on x86_64'
cmake -GNinja -DCMAKE_C_COMPILER=clang-12 -DCMAKE_CXX_COMPILER=clang++-12 \
-DENABLE_OFFLOAD=ON -DOFFLOAD_TARGET=x86_64-pc-linux-gnu \
-DUSE_OBJECT_TARGET=ON -DQMC_MPI=0 \
${GITHUB_WORKSPACE}

# Configure with default compilers
*)
echo 'Configure for default system compilers and options'
Expand Down

0 comments on commit 4a2f7cd

Please sign in to comment.