-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 2.47 KB
/
Copy pathlinux.yml
File metadata and controls
74 lines (61 loc) · 2.47 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: linux
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
cxx: [g++-10]
build_type: [Debug]
std: [20]
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- name: Update apt
run: |
sudo apt-get update
- name: Install apt packages
run: >
sudo apt-get install -y libudev-dev libgl-dev libx11-xcb-dev libfontenc-dev libxaw7-dev
libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxi-dev libxinerama-dev
libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxres-dev libxss-dev libxtst-dev
libxv-dev libxvmc-dev libxxf86vm-dev libxcb-render-util0-dev libxcb-xkb-dev
libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev
libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev libxcb-cursor-dev
libxcb-util-dev libpng-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-present-dev
libxcb-composite0-dev libxcb-ewmh-dev libxcb-res0-dev
- name: Update apt 2
run: |
sudo apt-get update
- name: Upgrade pip
run: |
pip3 install --upgrade pip
- name: Install and configure Conan
run: |
pip3 install conan==1.62.0
conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile update settings.build_type=Debug default
conan profile update conf.tools.system.package_manager:mode=install default
conan profile show default
sudo apt-get update
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: CMake Configure
working-directory: ${{runner.workspace}}/build
env:
CXX: ${{matrix.cxx}}
# CXXFLAGS: ${{matrix.cxxflags}}
run: |
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_MODULE_PATH=$PWD -DENABLE_TESTS=False \
$GITHUB_WORKSPACE
- name: CMake Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}}
# - name: Test
# working-directory: ${{runner.workspace}}/build/
# run: ctest -V -C ${{matrix.build_type}} --output-on-failure
# - name: Run cpack
# working-directory: ${{runner.workspace}}/build
# run: cpack -V