-
Notifications
You must be signed in to change notification settings - Fork 3
81 lines (66 loc) · 3.08 KB
/
linux-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Linux build
on: [ push ]
jobs:
build:
name: Linux build
runs-on: ubuntu-24.04
env:
BUILD_TYPE: Release
PROJ_LIB: ${{github.workspace}}/bin/share/proj
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Cache Conan libs
id: cache-conan
uses: pat-s/[email protected]
with:
path: /home/runner/.conan
key: conan-linux
- name: Install Conan
run: |
python -m pip install --upgrade pip
pip install wheel conan==1.*
# gitlab support (wxwidgets, mysql, gdal)
conan remote add gitlab https://gitlab.com/api/v4/packages/conan --force
# create default profile with libstdc++11
conan profile new default --detect --force
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile update conf.tools.system.package_manager:mode=install default
conan profile update conf.tools.system.package_manager:sudo=True default
- name: Install system libs
run: |
sudo apt-get update
# GTK 3.0 libraries & MySQL dependencies
sudo apt-get install libgtk-3-0 libgtk-3-dev
sudo apt-get install libgnutls30 libgnutls28-dev
sudo apt-get install libxcb-cursor0 libxcb-cursor-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev
sudo apt-get install libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev
sudo apt-get install libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev libxcb-util-dev libxcb-render0-dev
sudo apt-get install libxcb-dri2-0-dev libxcb-present-dev libxcb-glx0-dev libxcb-composite0-dev libxcb-xv0-dev
sudo apt-get install libxcb-xvmc0-dev libxcb-xinput-dev libxcb-ewmh-dev libxcb-xf86dri0-dev libxcb-xrm-dev
sudo apt-get install libxcb-record0-dev libxcb-xtest0-dev libxcb-res0-dev
sudo apt-get install libx11-xcb-dev libx11-dev libfontenc-dev libxaw7-dev libxmu-dev libxmuu-dev libxpm-dev
sudo apt-get install libxres-dev libxss-dev libxv-dev libxvmc-dev libxxf86vm-dev libxt-dev libxtst-dev
sudo apt-get install libncurses5-dev libssl-dev libice-dev
sudo apt-get install libsm-dev libxau-dev libxcomposite-dev libxcursor-dev libxdamage-dev
sudo apt-get install libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
sudo apt-get install libxkbfile-dev libxrandr-dev libxrender-dev
sudo apt-get install xtrans-dev xkb-data uuid-dev libwebkit2gtk-4.1-dev
- name: Install libraries
run: |
mkdir ${{github.workspace}}/bin
cd ${{github.workspace}}/bin
conan install .. -o unit_test=True --build=gtk --build=missing
- name: Build
working-directory: ${{github.workspace}}/bin
run: conan build ..
- name: Run tests
working-directory: ${{github.workspace}}/bin
run: |
cd bin
./UnitTests