-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.18 KB
/
backend.yaml
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
name: Backend Build
on:
push:
paths:
- backend/**
- .github/workflows/backend.yaml
pull_request:
types: [opened]
paths:
- backend/**
- .github/workflows/backend.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
backend:
runs-on: ubuntu-latest
env:
CXX: /usr/bin/c++
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Linux version
run: uname -r
- name: Apt update
run: sudo apt-get update
- name: Install CMake
run: sudo apt-get install -y cmake
- name: Install OpenCASCADE
run: sudo apt-get install libtbb-dev libpcl-dev libx11-dev libxi-dev libocct-* occt-misc
- name: Find compiler paths
run: |
echo "CC compiler path: $(which cc)"
echo "CXX compiler path: $(which c++)"
- name: Create build directory
working-directory: backend
run: mkdir build
- name: Cmake Build
working-directory: backend/build
run: cmake ..
- name: Build Backend Project
working-directory: backend/build
run: make