-
Notifications
You must be signed in to change notification settings - Fork 66
50 lines (48 loc) · 1.66 KB
/
build_ascent_cuda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: build_ascent_cuda
on:
pull_request:
branches: [ develop ]
jobs:
build_cuda:
name: Build Ascent CUDA
runs-on: ubuntu-latest
container: alpinedav/ascent-ci:ubuntu-22.04-cuda-11.8.0-devel
env:
CMAKE_VERSION: 3.23.3
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install CMake
run: |
curl -L https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz -o cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz
tar -xzf cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz
cmake-${CMAKE_VERSION}-linux-x86_64/bin/cmake --version
- name: Build TPLs
run: |
export PATH=$PATH:cmake-${CMAKE_VERSION}-linux-x86_64/bin/
env enable_cuda=ON \
enable_mpi=OFF \
enable_fortran=OFF \
enable_tests=OFF \
build_ascent=OFF \
enable_verbose=OFF \
build_jobs=2 \
./scripts/build_ascent/build_ascent.sh
- name: Configure Ascent
run: |
export PATH=$PATH:cmake-${CMAKE_VERSION}-linux-x86_64/bin/
cmake --version
echo "**** Configuring Ascent"
cmake -S src -B build -C ascent-config.cmake -DCMAKE_INSTALL_PREFIX=install
- name: Build Ascent
run: |
export PATH=$PATH:cmake-${CMAKE_VERSION}-linux-x86_64/bin/
echo "**** Building Ascent"
cmake --build build -j2 --config Release
- name: Install Ascent
run: |
export PATH=$PATH:cmake-${CMAKE_VERSION}-linux-x86_64/bin/
echo "**** Installing Ascent"
cmake --install build --config Release