-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 818 Bytes
/
ci.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
name: build
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
chmod +x scripts/install_dependencies.sh
scripts/install_dependencies.sh
sudo apt install gcc-10 g++-10
- name: Install drivers
run: |
chmod +x scripts/install_opencl_drivers.sh
scripts/install_opencl_drivers.sh
- name: Build
run: |
mkdir build
cd build
cmake .. -DBUILD_TESTS=ON
make
env:
CC: gcc-10
CXX: g++-10
- name: Test
run: |
cd build
ctest --output-on-failure .