-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (79 loc) · 2.13 KB
/
test_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: 'Test build'
on:
push:
paths:
- '**/*.hpp'
- '**/*.cpp'
- '**/*.pxd'
- '**/*.pyx'
- '**/*.py'
- '**/*.build'
- 'build'
- '**/requirements.txt'
- 'doc/**'
- 'python/subprojects/testbed/tests/**'
- '.github/workflows/test_build.yml'
jobs:
linux_build:
name: Test Linux build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install OpenCL
run: |
sudo apt update
sudo apt install -y opencl-headers ocl-icd-opencl-dev
- name: Compile via GCC
run: |
./build compile
- name: Run Tests
run: |
./build tests
- name: Install Doxygen
uses: ssciwr/doxygen-install@v1
- name: Install Roboto font
run: |
sudo apt install -y fonts-roboto
- name: Generate Documentation
run: |
./build doc
macos_build:
name: Test MacOS build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install OpenMP
run: |
brew install libomp
brew link libomp --force
- name: Install OpenCL
run: |
brew install opencl-clhpp-headers
- name: Compile via Clang
run: |
CPLUS_INCLUDE_PATH=/usr/local/opt/opencl-clhpp-headers/include ./build compile
windows_build:
name: Test Windows build
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Remove conflicting link.exe
uses: JesseTG/[email protected]
with:
path: C:\Program Files\Git\usr\bin\link.EXE
- name: Install OpenCL
uses: johnwason/vcpkg-action@v5
with:
pkgs: opencl
triplet: x64-windows
token: ${{ github.token }}
- name: Compile via MSVC
run: |
$env:INCLUDE += ";$($pwd.Path)\vcpkg\packages\opencl_x64-windows\include"
$env:LIB += ";$($pwd.Path)\vcpkg\packages\opencl_x64-windows\lib"
./build.bat compile