feat: add release workflow with Homebrew and .deb packaging - #40
Merged
Conversation
Add asset_path module that resolves asset paths with fallback: 1. User data dir (~/Library/Application Support/ on macOS, XDG_DATA_HOME on Linux) 2. System install dir (compile-time MAVSIM_INSTALL_DATADIR) 3. Relative path (dev/build fallback) Update all asset load sites in scene, hud, and vehicle to use asset_path(). Add CMake install() rules for binary and assets.
Release workflow triggered by version tags (v*): - Creates source tarball with submodule baked in - Builds Homebrew bottles for macOS arm64 and x86_64 - Publishes GitHub Release with all artifacts - Updates mavlink/homebrew-tap formula with bottle hashes Requires HOMEBREW_TAP_TOKEN secret for tap repo access.
Add CPack DEB configuration to CMakeLists.txt with runtime dependencies for X11/GL. Add deb-amd64 job to release workflow that builds, smoke tests, and uploads .deb to the GitHub Release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add asset path resolution for installed builds and a tag-triggered release workflow.
Asset path module (
src/asset_path.c):~/Library/Application Support/mavsim-viewer/$XDG_DATA_HOME/mavsim-viewer/MAVSIM_INSTALL_DATADIRfor system installsRelease workflow (
.github/workflows/release.yml):v*).debfor Linux amd64 with smoke testmavlink/homebrew-tapformula with bottle hashesCMake install rules:
bin/mavsim-viewershare/mavsim-viewer/{models,shaders,fonts,textures}/Requires:
HOMEBREW_TAP_TOKENsecret (already configured)Users install via:
or on Linux: