2022-11-21 22:56:50 +01:00
|
|
|
name: Release Linux
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "*"
|
|
|
|
pull_request:
|
|
|
|
branches-ignore:
|
|
|
|
- "no-ci-*"
|
2024-03-12 14:24:34 +01:00
|
|
|
env:
|
2022-11-21 22:56:50 +01:00
|
|
|
PRESET: linux-ci-release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: "ubuntu-22.04"
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: checkout mapnik
|
2024-03-12 14:24:34 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-11-21 22:56:50 +01:00
|
|
|
with:
|
|
|
|
submodules: "recursive"
|
|
|
|
|
|
|
|
- name: "Install required system packages"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y ninja-build\
|
|
|
|
libicu-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libharfbuzz-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libjpeg-dev \
|
|
|
|
libtiff-dev \
|
|
|
|
libwebp-dev \
|
|
|
|
libcairo2-dev \
|
|
|
|
libproj-dev \
|
|
|
|
libgdal-dev \
|
|
|
|
libboost-filesystem-dev \
|
|
|
|
libboost-program-options-dev \
|
|
|
|
libboost-regex-dev
|
|
|
|
|
|
|
|
- name: Configure CMake
|
2023-03-19 22:05:58 +01:00
|
|
|
run: cmake -LA --preset ${{ env.PRESET }}
|
2022-11-21 22:56:50 +01:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cmake --build --preset ${{ env.PRESET }}
|
|
|
|
|
|
|
|
- name: Package
|
|
|
|
run: cmake --build --preset ${{ env.PRESET }} --target package
|
|
|
|
|
|
|
|
- name: Upload mapnik debian package
|
2024-03-12 14:24:34 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-11-21 22:56:50 +01:00
|
|
|
with:
|
|
|
|
name: ${{ env.PRESET }}-deb
|
2024-03-12 14:55:23 +01:00
|
|
|
path: build/mapnik-*.deb
|