Skip to content

Trying to fix Linux-based builds. #212

Trying to fix Linux-based builds.

Trying to fix Linux-based builds. #212

Workflow file for this run

name: Linux build
on: [ push ]
jobs:
build:
name: Linux build
runs-on: ubuntu-22.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.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- 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
sudo apt-get install libgtk-3-0 libgtk-3-dev
sudo apt-get install libxcb-cursor0 libxcb-cursor-dev
sudo apt-get install libx11-xcb-dev libfontenc-dev libxaw7-dev libxmu-dev libxmuu-dev libxpm-dev libxres-dev libxss-dev
sudo apt-get install libxv-dev libxvmc-dev libxxf86vm-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
# needed for MySQL
sudo apt-get install libncurses5-dev libssl-dev libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev
sudo apt-get install libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
sudo apt-get install libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev
sudo apt-get install libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev
sudo apt-get install libxcb-xkb-dev libxcb-icccm4-dev 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 xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev
- name: Install libraries
run: |
mkdir ${{github.workspace}}/bin
cd ${{github.workspace}}/bin
conan install .. -o unit_test=True --build=missing
- name: Build
working-directory: ${{github.workspace}}/bin
run: conan build ..
- name: Run tests
working-directory: ${{github.workspace}}/bin
run: |
cd bin
./UnitTests