-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.06 KB
/
build.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
name: Build Latte
on: [push, pull_request]
jobs:
ubuntu-22-cpu:
runs-on: ubuntu-22.04
steps:
- name: Clone
id: checkout
uses: actions/checkout@v4
- name: Dependencies
id: depends
run: |
sudo apt-get update
sudo apt-get install -y libopenblas-dev build-essential cmake
- name: Build
id: cmake-build
run: |
cmake -S . -B build -DUSE_CUDA=OFF
cmake --build build -j $(nproc)
ubuntu-22-cuda:
runs-on: ubuntu-22.04
steps:
- name: Clone
id: checkout
uses: actions/checkout@v4
- name: Dependencies
id: depends
run: |
sudo apt-get update
sudo apt-get install -y libopenblas-dev build-essential cmake
- name: CUDA
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.5.0'
method: 'network'
- name: Build
id: cmake-build
run: |
cmake -S . -B build -DUSE_CUDA=ON
cmake --build build -j $(nproc)