Skip to content

Run CI on both macOS and Linux - #59

Merged
trasch merged 1 commit into
mainfrom
ci-macos-and-linux
Oct 22, 2026
Merged

trasch merged 1 commit into
mainfrom
ci-macos-and-linux

Conversation

@trasch

@trasch trasch commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Splits the existing single macOS CI job into two jobs so the test suite runs on both macOS and Linux (same layout as gis-tools).

  • macos — unchanged toolchain (setup-swift 6.3.3) on macos-latest, now timeout-minutes: 45
  • linux — runs in the swift:6.3.3 container on ubuntu-latest

Package-specific details:

  • submodules: recursive is kept/added so the Dependencies/maplibre-tile-spec C++ bridge (MLT) is available in both jobs.
  • swift:6.3.3 (not 6.1) because Package.swift uses // swift-tools-version:6.3.
  • --enable-all-traits is used in both jobs, so CSV, GeoPackage, GPX, FIT, Shapefile and MLT all get built and tested.
  • The Linux job installs libsqlite3-dev: the Swift image only ships the SQLite runtime, while gis-tools-geopackage resolves OACSQLite through pkg-config sqlite3. The image already provides pkg-config and libstdc++-13-dev for the C++ interop bridge.

Validation

Ran swift test --enable-all-traits locally on Linux (Swift 6.4.1):

  • MVTToolsTests: 198 tests / 30 suites passed
  • MVTCLITests: 82 tests / 8 suites passed

@trasch trasch self-assigned this Oct 22, 2026
@trasch trasch added the enhancement New feature or request label Oct 22, 2026
@trasch
trasch merged commit 771ebdf into main Oct 22, 2026
2 checks passed
@trasch
trasch deleted the ci-macos-and-linux branch October 22, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant