-
Notifications
You must be signed in to change notification settings - Fork 14
73 lines (63 loc) · 1.91 KB
/
Ubuntu.yml
File metadata and controls
73 lines (63 loc) · 1.91 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Ubuntu
#on:
# workflow_dispatch:
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# explicit include-based build matrix, of known valid options
matrix:
include:
- os: ubuntu-24.04
cuda: "13.0.2"
gcc: 13
config: Release
- os: ubuntu-24.04
cuda: "13.0.2"
gcc: 13
config: Debug
- os: ubuntu-22.04
cuda: "12.0.0"
gcc: 11
config: Release
env:
build_dir: "build"
steps:
- name: Checkout cuBQL
uses: actions/checkout@v5
with:
submodules: true
- name: Install CUDA
uses: Jimver/cuda-toolkit@master
id: cuda-toolkit
with:
cuda: ${{ matrix.cuda }}
method: 'network'
log-file-suffix: '${{matrix.os}}-gcc${{matrix.gcc}}-config${{matrix.config}}.txt'
# Specify the correct host compilers
- name: Install/Select gcc and g++
run: |
sudo apt-get install -y gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }}
echo "CC=/usr/bin/gcc-${{ matrix.gcc }}" >> $GITHUB_ENV
echo "CXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
echo "CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
- name: cmake configure
run: |
mkdir ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake .. -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install-DCMAKE_BUILD_TYPE=${{matrix.config}}
- name: cmake build
run: |
cd ${{github.workspace}}/build
cmake --build . --config ${{ matrix.config }}
- name: cmake install
run: |
cd ${{github.workspace}}/build
cmake --install . --config ${{ matrix.config }}