-
Notifications
You must be signed in to change notification settings - Fork 40
55 lines (53 loc) · 1.88 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
50
51
52
53
54
55
name: Build
on: [pull_request, push]
jobs:
debug-linux:
runs-on: ubuntu-latest
steps:
- name: Install OpenCL
run: |
sudo add-apt-repository ppa:intel-opencl/intel-opencl
sudo apt-get update
sudo apt-get install ocl-icd-opencl-dev
- uses: actions/checkout@aabbfeb2ce60b5bd82389903509092c4648a9713
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f
with:
toolchain: stable
- name: Build
run: cargo build
release-linux:
runs-on: ubuntu-latest
steps:
- name: Install OpenCL
run: |
sudo add-apt-repository ppa:intel-opencl/intel-opencl
sudo apt-get update
sudo apt-get install ocl-icd-opencl-dev
- uses: actions/checkout@aabbfeb2ce60b5bd82389903509092c4648a9713
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f
with:
toolchain: stable
- name: Build release
run: cargo build --release
debug-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@aabbfeb2ce60b5bd82389903509092c4648a9713
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f
with:
toolchain: stable
- name: Opencl.lib
run: curl -o OpenCL.lib https://s3.us-east-2.amazonaws.com/repo.nano.org/artifacts/OpenCL.lib
- name: Build
run: cargo rustc -- -l OpenCL -L "OpenCL.lib"
release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@aabbfeb2ce60b5bd82389903509092c4648a9713
- uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f
with:
toolchain: stable
- name: Opencl.lib
run: curl -o OpenCL.lib https://s3.us-east-2.amazonaws.com/repo.nano.org/artifacts/OpenCL.lib
- name: Build
run: cargo rustc --release -- -l OpenCL -L "OpenCL.lib"