File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 42
42
shell : bash
43
43
run : cmake --build ${{runner.workspace}}/build --target test
44
44
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
+
45
78
debug_build :
46
79
runs-on : ubuntu-latest
47
80
container :
You can’t perform that action at this time.
0 commit comments