Introducing a new way to review your PRs.

Read the announcement

maplibre / maplibre-tile-spec

Next generation map vector tiles format

View on GitHub

20 documents · Updated Nov 23, 2026

docs / automation-and-releases

Automation and releases

Repository automation keeps the language packages aligned, checks changes before merge, measures performance and coverage, publishes the documentation site, and releases user-facing packages. GitHub Actions selects the checks that match a change, then builds and publishes artifacts only after the required jobs succeed. This page complements Cross-language validation and Shared conformance assets.

Continuous integration

Continuous integration (CI) is the main gate for pull requests and pushes to main. The top-level workflow maps changed paths to language and documentation areas, then reports the selected workflow results as one combined gate. This keeps unrelated areas from blocking a change while preserving a clear result for every affected area.

References: .github/…/ci.yml• L1-113

Language validation

Each language workflow checks the product surface that its users depend on. Rust covers the core build and its bindings, WebAssembly, FFI, fuzz targets, documentation, and release readiness. Java checks Windows, macOS, and Linux builds plus package publishing, command-line tools, and synthetic data generation. TypeScript checks lint, tests, builds, and coverage. C++ checks native builds, coverage, its JSON tool, and Bazel on macOS and Linux. Its expensive jobs can be skipped for stacked pull requests.

References: .github/…/rust.yml• L15-293 .github/…/java.yml• L11-49 .github/…/ts.yml• L11-33 .github/…/cpp.yml• L12-60

The workflows also verify that generation and build steps leave no unexpected changes. This makes bindings, stubs, fixtures, snapshots, package metadata, and documentation outputs part of the shared CI contract.

References: justfile• L144-160 rust/mod.just• L113-130 rust/mod.just• L534-575

Coverage reporting

Coverage reports show which code the language test suites exercise. Rust combines coverage from native, Python, FFI, WebAssembly, and optional fuzz runs. Java, TypeScript, and C++ publish separate reports. Coverage informs review, while the build and test jobs remain the main pass or fail gate.

References: .github/…/rust.yml• L30-39 .github/…/rust.yml• L49-90 .github/…/rust.yml• L92-130 .github/…/rust.yml• L240-267 .github/…/java.yml• L31-39 .github/…/ts.yml• L24-31 .github/…/cpp.yml• L44-52

Static analysis

Static analysis adds a security check beside the build checks. CodeQL selects languages from changed files on pull requests and pushes. Scheduled and manual runs scan every supported language so the security baseline stays current. Java uses an automatic build, while the other analyses extract source without a full build.

References: .github/…/codeql.yml• L1-16 .github/…/codeql.yml• L17-70 .github/…/codeql.yml• L72-103

Automated fixups keep source and generated outputs in the form expected by CI. The pull request workflow uses path filters to format code, sync package versions, rebuild FFI bindings and Python stubs, refresh documentation data, and regenerate expected output. It sends the resulting changes through one commit operation and treats the Autofix check as a required merge gate.

References: .github/…/autofix.yml• L1-23 .github/…/autofix.yml• L30-61 .github/…/autofix.yml• L66-134

Snapshot blessing

Snapshot blessing is a separate, label-driven flow for approved test-output updates. A pull request with the bless label runs the full component blessing command, applies formatting checks, and commits the refreshed output without adding a skipped Autofix check to the pull request.

References: .github/…/bless.yml• L1-23 .github/…/bless.yml• L39-59

Benchmark reporting

The hotpath benchmark measures release-mode conversion and decoding on a fixed sample of Protomaps tiles. Pushes send reports to the benchmark service. Pull requests save reports and compare the proposed change with its base revision. The run also records output size per tile, so review can see both speed and encoded-size changes.

References: .github/…/hotpath-benchmark.yml• L1-58 .github/…/hotpath-benchmark.yml• L59-138 rust/mod.just• L242-296

The relay workflow reads pull request benchmark artifacts after the benchmark completes. It sends four named reports to the external service: mlt-convert, mlt-convert-v2, mlt-decode-v1, and mlt-decode-v2. A second job reads the size metrics and creates or updates one pull request comment. This keeps benchmark execution separate from review feedback without losing the result on the change.

References: .github/…/hotpath-relay.yml• L1-29 .github/…/hotpath-relay.yml• L31-77

Documentation publication

Documentation publication builds the WebAssembly package before the inspector site because the inspector uses that package. It then checks the inspector and builds the documentation site. On the MapLibre repository's main branch, the workflow deploys the resulting site directory to gh-pages; pull requests run the build and checks without deployment.

References: .github/…/gh-pages.yml• L1-35 justfile• L59-63

CI selects the site workflow when documentation, inspector code, shared test inputs, or code that changes inspector results is affected. The filter treats the site as a cross-system product result rather than a docs-only output.

References: .github/…/ci.yml• L14-63 .github/…/ci.yml• L100-104

Language-package releases

Release workflows use package-specific triggers because each package has its own version source and registry. They build artifacts first, publish only after the required platform jobs pass, and create a GitHub release or tag that identifies the package and version.

References: .github/…/rust.yml• L294-421 .github/…/ts-release.yml• L1-95 .github/…/python-release.yml• L207-234 .github/…/java-release.yml• L1-61 .github/…/mlt-ffi-release.yml• L1-176

Rust package flow

The Rust release flow runs as a conditional stage after the Rust CI gate. The Rust workspace defines the package set and shared release metadata. release-plz publishes newer crates or opens a release pull request with the next version and changelog. When a release is made, CI attaches platform binaries to the Rust GitHub release and publishes the WebAssembly npm package when that crate changed.

References: rust/Cargo.toml• L1-18 .github/…/rust.yml• L269-337 .github/…/rust.yml• L339-364 release-plz.toml• L1-50

The Rust release uses a GitHub App token so tags, releases, and release pull requests created by the flow can trigger their follow-on workflows. The workspace also makes mlt-core a versioned package with dedicated benchmark and test capabilities, so changes to the core package remain part of the release and validation contract.

References: .github/…/rust.yml• L308-337 rust/…/Cargo.toml• L1-55 rust/…/Cargo.toml• L103-169

TypeScript and WebAssembly flow

The TypeScript release flow runs on main or by manual request. It first checks whether ts/package.json changed version. If it did, the flow builds the package, creates a draft GitHub release, publishes to npm for the MapLibre repository, and then makes the release public. Semantic versions produce stable releases; other versions remain prereleases.

References: .github/…/ts-release.yml• L7-38 .github/…/ts-release.yml• L50-95

The manual TypeScript version workflow changes the version in a pull request. This keeps the version change reviewable before the release workflow publishes it.

References: .github/…/ts-bump-version.yml• L1-39

The WebAssembly package follows the Rust release because Rust CI builds its package archive. When mlt-wasm appears in the Rust release result, the workflow creates a draft GitHub release, publishes the package to npm, and marks the release public.

References: .github/…/rust.yml• L201-238 .github/…/rust.yml• L366-421

Python flow

The Python flow builds platform wheels and a source distribution for the Rust-backed Python package. Pull requests run it when Python binding files or their direct workflow inputs change. Main-branch, release-tag, and manual runs can build the release set. The current enabled matrix covers Linux x86_64 and macOS Intel and ARM64; other targets remain disabled because their native build dependencies are not ready.

References: .github/…/python-release.yml• L6-43 .github/…/python-release.yml• L44-85 .github/…/python-release.yml• L163-205

The release job gathers the Linux, macOS, and source artifacts into one package set. It creates build provenance attestations for those files, then publishes to PyPI only for a python-mlt-v* tag. Manual runs can build and attest artifacts without publishing them.

References: .github/…/python-release.yml• L207-234

Java and FFI flow

The Java release publishes the Java package to Maven Central from a java-v* tag and adds command-line jars to the matching GitHub release. Java CI checks the package and command-line surface on three operating systems before release work is considered complete.

References: .github/…/java-release.yml• L3-61 .github/…/java.yml• L11-49

The FFI release starts from a rust-mlt-ffi-v*.*.* tag or a manual run. It builds native libraries for Linux, macOS, FreeBSD, and Windows across x86_64 and ARM64 targets. It then places them into Kotlin and Java package layouts and publishes both packages to Maven Central before creating the matching GitHub release.

References: .github/…/mlt-ffi-release.yml• L3-58 .github/…/mlt-ffi-release.yml• L94-176

Release boundaries depend on synchronized versions and generated package inputs. Automated fixups align WebAssembly and Python metadata with their Rust crates. The FFI flow derives its version from the tag and uses platform classifiers to collect native libraries for both generated package variants.

References: .github/…/autofix.yml• L81-120 .github/…/mlt-ffi-release.yml• L132-163 rust/mod.just• L497-532

Release artifacts

Release artifacts follow a common path: platform jobs build them, short-lived workflow artifacts carry them to a trusted release job, and that job publishes them to a registry or attaches them to a GitHub release. This separates platform-specific builds from the final publication step.

References: .github/…/rust.yml• L171-238 .github/…/rust.yml• L339-364 .github/…/python-release.yml• L44-234 .github/…/mlt-ffi-release.yml• L11-170

The workflows use trusted identity or signing credentials where the registry requires them. Rust and npm use workflow identity for trusted publication. Python attests build artifacts before PyPI publication. Maven publication uses repository credentials and signing keys.

References: .github/…/rust.yml• L302-328 .github/…/rust.yml• L374-415 .github/…/python-release.yml• L219-234 .github/…/java-release.yml• L34-41

Change checklist

When these files or sections are changed, remember to consider these:

  • Change a package version with its release tag and registry path in mind. Rust package names and tags are centralized in release-plz.toml; Java, Python, FFI, TypeScript, and WebAssembly use separate tag or package rules.
  • Change a generated binding, stub, fixture, snapshot, or hexdump with the matching autofix path filter and clean-tree check. A missing filter can skip the regeneration that CI expects.
  • Change benchmark output or artifact names together in hotpath-benchmark.yml and hotpath-relay.yml. The relay selects report files by exact benchmark name and reads the exact size-metrics artifact.
  • Change inspector inputs or the site build with the docs path filter in ci.yml. Inspector results depend on more than files under docs/.
  • Change a release artifact name or package layout together with its download, publish, and GitHub release steps. Later jobs consume earlier artifact names as contracts.
  • Change an FFI target, classifier, or library name together with the native artifact layout and generated Kotlin and Java package inputs. The publish jobs use those classifier names to place each library.
  • Change the Python release matrix or publish trigger together with the artifact collection and tag gate. The release job must receive every enabled platform artifact and must publish only for the intended tag.
  • Change the TypeScript version-bump policy together with the version-change check. The bump workflow must leave a reviewed package version for the release workflow to detect.

Important failure modes

TriggerConsequenceGuard
A changed path is missing from the CI filterThe affected language or site check does not runci.yml path groups include source, shared tests, workflow, and inspector dependencies
A generated file is staleCI fails its clean-tree check after a build or test stepAutofix regeneration and assert-git-is-clean verify generated outputs
A benchmark report name changes in only one workflowThe relay cannot upload the report or update the size commentBoth workflows use the same benchmark and artifact names
A release tag does not match the package prefixThe release job does not publish the intended packageJava, Python, and FFI workflows constrain tag patterns; Rust uses release-plz tag templates
A Python platform job is removed or renamed without updating release dependenciesThe release job cannot assemble the full wheel setThe release job requires the enabled Linux, macOS, and source jobs and downloads wheels-* artifacts
A native FFI target or classifier is missing from the release matrixA platform package lacks its library or publishes an incomplete variant setThe native matrix names each target, classifier, and library, and artifact downloads require the expected files
A release artifact is missing or placed in the wrong pathThe GitHub release or registry publication stopsArtifact downloads use required paths and fail on unmatched files where configured
A pull request benchmark does not complete successfullyNo size-difference comment is postedThe relay requires a successful pull request benchmark run
The TypeScript package version does not changeThe release workflow skips npm publicationThe release job gates publication on the ts/package.json version check

Key files

FileWhy to read it
.github/…/ci.ymlShows change selection and the combined CI gate
.github/…/rust.ymlShows the full validation, artifact, and Rust release pipeline
.github/…/java.ymlShows cross-platform Java validation and package checks
.github/…/ts.ymlShows TypeScript lint, test, build, and coverage checks
.github/…/cpp.ymlShows native C++ validation and heavy-job gating
.github/…/codeql.ymlShows selective and scheduled security analysis
.github/…/autofix.ymlShows path-gated generated-output repair and the required autofix check
.github/…/bless.ymlShows label-driven snapshot updates across components
.github/…/hotpath-benchmark.ymlShows benchmark execution and artifact creation
.github/…/hotpath-relay.ymlShows benchmark publication and pull request feedback
.github/…/gh-pages.ymlShows the documentation build and deployment boundary
rust/Cargo.tomlShows the Rust workspace package set and shared release metadata
rust/…/Cargo.tomlShows the core package's version and validation capabilities
release-plz.tomlDefines Rust package release names, tags, and publication policy
.github/…/ts-release.ymlShows version-gated npm publication and GitHub release creation
.github/…/ts-bump-version.ymlShows the reviewed TypeScript version-bump path
.github/…/python-release.ymlShows Python trigger selection, platform artifact builds, attestation, and PyPI publication
.github/…/java-release.ymlShows Maven and Java CLI release output
.github/…/mlt-ffi-release.ymlShows native FFI matrix builds and Maven publication
justfileShows shared CI commands and cross-language orchestration
rust/mod.justShows Rust checks, coverage, benchmarks, packaging, and generated-file rules