Repository navigation
Release workflow: the game and its server, built on a tag and published - #4
Merged
Merged
Conversation
A tag v* builds the APK (phone and Meta Quest) after the unit tests, and the two-player server for Linux, macOS and Windows on amd64 and arm64 after its tests, and publishes them with SHA256SUMS under names that stay the same, so a CI job can download the latest without building. A pull request that touches the workflow builds without publishing.
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.
What
.github/workflows/release.yml: a tagv*builds Morpho Match and its two-player server and publishes them as a GitHub release, withSHA256SUMS, under names that stay the same from release to release, soreleases/latest/download/<file>keeps working:MorphoMatch-android.apk: the game, for a phone or a Meta Quest, after:app:testDebugUnitTest. Signed with the runner's debug key: an app under test, never published to a store.morpho-match-server-<os>-<arch>: the server for Linux, macOS and Windows on amd64 and arm64, aftergo test ./.... Built withCGO_ENABLED=0 -trimpath, Go fromserver/go.mod. It listens on127.0.0.1:8787unless given-addr.A pull request that changes the workflow builds everything and publishes nothing, so this PR is the workflow's first run. The README gains "Install a release".
Checked
Locally from a clean checkout of
main: the unit tests andassembleReleasewith JDK 21,go test ./..., and the server cross-built for all six targets with Go 1.27.0.