Repository navigation
Build, nightly and release workflows - #46
Open
jurgelenas wants to merge 2 commits into
Open
jurgelenas wants to merge 2 commits into
jurgelenas wants to merge 2 commits into
Conversation
The ExpressLRS and Bind tools each hard-coded their own "r<N>" version. Both now load SCRIPTS/ELRS/version.lua, which is "dev" in the source tree. Release builds will write the semver version (or a short commit hash for nightly and PR builds) into that file.
make build stages src into dist/, writes the version into SCRIPTS/ELRS/version.lua, compiles every script with the standalone edgetx-luac and zips the SD card tree. Tools are pinned and downloaded into bin/; stylua no longer needs cargo. CI runs checks and the build on every PR and master push. Builds show the 7-character commit hash; master pushes replace the nightly prerelease. Pushing a vX.Y.Z tag publishes a release showing X.Y.Z. A workflow_run job comments the build link on PRs, including forks.
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.
Depends on #45 (
version.lua).make buildcreates the SD card zip: copiessrc, drops the dev-onlyCRSFSimulatorlibrary, writes the version intoSCRIPTS/ELRS/version.lua, and compiles every script with the standalone edgetx-luac (bytecode identical toedgetx-cli dev build). CI doesn't neededgetx-cli.bin/(stylua 2.3.1, LuaLS 3.17.1, edgetx-luac 1.0.0); stylua no longer needs cargo.nightlyprerelease, titled "Nightly (development build)" with a not-a-stable-release warning (expresslrs-lua-nightly.zip).vX.Y.Ztag; the release showsX.Y.Z. Pre-release suffixes are rejected because they don't fit the B&W EXIT labels.workflow_runjob posts and updates one comment with the build link, including on fork PRs. It runs from master, so it starts after this is merged.Checked locally:
make buildwith the default and a1.1.0version; the zip has 46 scripts plus bytecode and no dev files. In the simulator, a 7-character hash fits the GX12 EXIT labels (7 px spare) and the TX16S version row.