mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Update README, CONTRIBUTING and CI for Linux
Add a new CI file for Ubuntu Disable the old github workflows Fix the Ubuntu build
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Build a Qt project on Ubuntu
|
||||
name: Build on Ubuntu
|
||||
name: Build on Ubuntu (old)
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -9,15 +9,16 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: false # Disable for now
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
uses: jurplel/install-qt-action@v4
|
||||
with:
|
||||
version: '5.12.8'
|
||||
version: '5.12.12'
|
||||
host: 'linux'
|
||||
target: 'desktop'
|
||||
modules: 'gui core serialport network opengl xml'
|
||||
|
||||
@@ -9,14 +9,16 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: false # Disable for now
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
uses: jurplel/install-qt-action@v4
|
||||
with:
|
||||
version: '5.12.12'
|
||||
target: 'desktop'
|
||||
modules: 'gui core serialport network opengl xml'
|
||||
- name: qmake
|
||||
|
||||
@@ -9,15 +9,16 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: false # Disable for now
|
||||
|
||||
runs-on: windows-2019
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: '5.12.8'
|
||||
version: '5.12.12'
|
||||
host: 'windows'
|
||||
target: 'desktop'
|
||||
arch: 'win64_msvc2017_64'
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
# Build MapMap on Ubuntu with all dependencies
|
||||
name: Build on Ubuntu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ develop, master ]
|
||||
pull_request:
|
||||
branches: [ develop, master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
liblo-dev liblo-tools \
|
||||
qtbase5-dev \
|
||||
qttools5-dev-tools \
|
||||
qtmultimedia5-dev \
|
||||
libqt5opengl5-dev \
|
||||
qtwebengine5-dev \
|
||||
qt5-qmake \
|
||||
libqt5serialport5-dev \
|
||||
libqt5xml5 \
|
||||
libqt5network5 \
|
||||
libqt5multimedia5-plugins \
|
||||
libgstreamer1.0-dev \
|
||||
libgstreamer-plugins-base1.0-dev \
|
||||
gstreamer1.0-plugins-bad \
|
||||
gstreamer1.0-libav \
|
||||
gstreamer1.0-vaapi \
|
||||
gstreamer1.0-plugins-base \
|
||||
gstreamer1.0-plugins-base-apps \
|
||||
gstreamer1.0-plugins-good \
|
||||
gstreamer1.0-plugins-ugly \
|
||||
gstreamer1.0-x \
|
||||
gstreamer1.0-tools \
|
||||
build-essential \
|
||||
pkg-config
|
||||
|
||||
- name: Configure with qmake
|
||||
run: qmake mapmap.pro
|
||||
|
||||
- name: Build
|
||||
run: make -j$(nproc)
|
||||
|
||||
- name: Run tests
|
||||
run: make check || true
|
||||
Reference in New Issue
Block a user