-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.61 KB
/
ci.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: Continuous Integration
on:
push:
paths:
- 'CMakeLists.txt'
- 'cmake/ycm-modules/*.cmake'
- '.github/workflows/ci.yml'
pull_request:
workflow_dispatch:
jobs:
maybe_skip:
runs-on: ubuntu-latest
outputs:
should_skip: ${{steps.skip_check.outputs.should_skip}}
steps:
- uses: fkirc/skip-duplicate-actions@v5
id: skip_check
with:
cancel_others: 'true'
build:
runs-on: ubuntu-latest
needs: maybe_skip
if: ${{needs.maybe_skip.outputs.should_skip != 'true'}}
steps:
- name: Check out teo-main
uses: actions/checkout@v4
- name: Install dependencies via apt
run: sudo apt-get update && sudo apt-get install -qq ccache libeigen3-dev libboost-regex-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev libboost-iostreams-dev libboost-date-time-dev libxml2-dev libopencv-dev libpcl-dev intltool libglib2.0-dev libusb-1.0-0-dev libspnav-dev libxwiimote-dev
- name: Set up Ccache
uses: hendrikmuhs/ccache-action@v1
- name: Set environment variables
run: |
echo "CFLAGS=-w" >> $GITHUB_ENV
echo "CXXFLAGS=-w" >> $GITHUB_ENV
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
- name: Configure teo-main
run: cmake -S . -B build -DCMAKE_INSTALL_PREFIX="$PWD/build/install-system" -DNON_INTERACTIVE_BUILD=ON
- name: Build teo-main
run: cmake --build build
- name: Install teo-main
run: cmake --install build
- name: Uninstall teo-main
run: cmake --build build --target uninstall