forked from luxonis/XLink
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.44 KB
/
.dev.workflow.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
name: Dev Workflow
on:
push:
branches-ignore:
- xlink_upstream
pull_request:
branches-ignore:
- xlink_upstream
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
compiler: [default]
libusb: [ON, OFF]
include:
- os: windows-latest
compiler: mingw
libusb: ON
- os: windows-latest
compiler: mingw
libusb: OFF
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install libusb
if: matrix.os == 'macos-latest' && matrix.libusb == 'ON'
run: |
brew install libusb
- name: Install libusb
if: matrix.os == 'ubuntu-latest' && matrix.libusb == 'ON'
run: |
sudo apt-get install libusb-1.0-0-dev libusb-1.0-0
- name: Setup MinGW compiler
if: matrix.compiler == 'mingw'
run: |
choco install mingw
choco upgrade mingw
- name: configure
if: matrix.compiler == 'default'
run: cmake . -Bbuild -DXLINK_BUILD_EXAMPLES=ON -DXLINK_BUILD_TESTS=ON -DXLINK_ENABLE_LIBUSB=${{ matrix.libusb }}
- name: configure
if: matrix.compiler == 'mingw'
run: cmake . -Bbuild -DXLINK_BUILD_EXAMPLES=ON -DXLINK_BUILD_TESTS=ON -DXLINK_ENABLE_LIBUSB=${{ matrix.libusb }} -G"MinGW Makefiles"
- name: build
run: cmake --build build --parallel