-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 1.49 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
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: Build Projects
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build-vfile:
runs-on: ubuntu-latest
name: Build VisionerFile
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
- name: 🤖 Install OpenCV
run: sudo apt-get install libopencv-dev libopencv-contrib-dev -y
- name: 🔧 Configure CMake
run: cmake -B ${{github.workspace}}/build -S${{github.workspace}}/src/VisionerFile -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: 🔨 Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
build-vwebcam:
runs-on: ubuntu-latest
name: Build VisionerWebcam
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
- name: 🤖 Install OpenCV
run: sudo apt-get install libopencv-dev libopencv-contrib-dev -y
- name: 🔧 Configure CMake
run: cmake -B ${{github.workspace}}/build -S${{github.workspace}}/src/VisionerWebcam -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: 🔨 Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}