Skip to content

Commit fe207dd

Browse files
[CI] Add NVGPU *build* to CI
1 parent 6106e2e commit fe207dd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build_and_test_compiler_zoo.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,39 @@ jobs:
4242
shell: bash
4343
run: cmake --build ${{runner.workspace}}/build --target test
4444

45+
nvgpu_build:
46+
runs-on: ubuntu-latest
47+
container:
48+
image: dbwy/chemistry-nvgpu:cuda-11.7.0
49+
50+
steps:
51+
- uses: actions/checkout@v3
52+
53+
- name: Setup Compiler
54+
shell: bash
55+
run: $GITHUB_WORKSPACE/.github/workflows/scripts/compiler_setup.sh
56+
gnu 12
57+
58+
- name: Setup Build Type
59+
shell: bash
60+
run: echo "set(CMAKE_BUILD_TYPE Release CACHE BOOL \"\" FORCE)" >>
61+
${GITHUB_WORKSPACE}/${GH_ACTIONS_TOOLCHAIN}
62+
63+
- name: Enable CUDA
64+
shell: bash
65+
run: echo "set(EXCHCXX_ENABLE_CUDA CACHE BOOL ON FORCE)" >>
66+
${GITHUB_WORKSPACE}/${GH_ACTIONS_TOOLCHAIN}
67+
68+
- name: Configure CMake
69+
shell: bash
70+
run: cmake -S $GITHUB_WORKSPACE -B ${{runner.workspace}}/build
71+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install
72+
-DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/${GH_ACTIONS_TOOLCHAIN}
73+
74+
- name: Build
75+
shell: bash
76+
run: cmake --build ${{runner.workspace}}/build -j2
77+
4578
debug_build:
4679
runs-on: ubuntu-latest
4780
container:

0 commit comments

Comments
 (0)