mapnik/.github/workflows/release_linux.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

2022-11-21 21:56:50 +00:00
name: Release Linux
on:
push:
branches:
- "*"
pull_request:
branches-ignore:
- "no-ci-*"
2024-03-12 13:24:34 +00:00
env:
2022-11-21 21:56:50 +00:00
PRESET: linux-ci-release
jobs:
build:
runs-on: "ubuntu-22.04"
steps:
- name: checkout mapnik
2024-03-12 13:24:34 +00:00
uses: actions/checkout@v4
2022-11-21 21:56:50 +00: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
run: cmake -LA --preset ${{ env.PRESET }}
2022-11-21 21:56:50 +00: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 13:24:34 +00:00
uses: actions/upload-artifact@v4
2022-11-21 21:56:50 +00:00
with:
name: ${{ env.PRESET }}-deb
2024-03-12 13:55:23 +00:00
path: build/mapnik-*.deb