-
Notifications
You must be signed in to change notification settings - Fork 54
CI workflow QoL improvements #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Include full commit hash in Version.txt files - Include commit title in release description and Version.txt files - Improve compression with nested zip files (uncompressed zip inside a max compressed zip) to work around its lack of solid compression, for compression ratio comparable to 7-zip while still maintaining backwards compatibility with systems that can't extract 7z files out of the box - Replace all third-party actions with standard commands - Fix tagged release using tag instead of branch name when the branch is expected - Fix infinite loop that triggers a new build when creating a release tag by making the untagged workflow trigger ignore all tags (including, e.g.: r123, created upon release), not just *.*.*
This could be an issue, I can't guarantee I won't inadvertently use "special" characters it may not like. |
Fair enough. tbh I'm not too familiar with Linux commands so would you happen to know how to properly escape special (or all?) characters of the output of |
Have you checked and seen problems when you do? As far as the commands themselves go, the echoes seem to work fine:
They're not getting interpreted as escape characters for the commands, at least on my machine. Though I'm unfamiliar with |
Attempting to delete a release that doesn't exist causes an error added to the workflow annotations. So appending || true will ensure it always returns error code 0 so that it's treated as a success.
Huh, either they fixed special characters breaking variables or it only breaks in certain cases (release titles?), because the commit title looks fine on this release description and in By the way, apparently they may have also fixed the issue where Oh, and one more thing: Anyhow, I think this should now be ready to merge 👀🤞 |
Actually, I think I noticed a bit of a problem (not necessarily from this PR, probably the last one). It seems every push to create a new archive/package also creates a new tag. I just pulled from the repo to sync my local branch and was greeted by
which seem pointless and redundant since there's not many commits in between each one, and anyone else pulling will also be greeted with more new tags each time there's been updates. Is there some way to stop this? |
Yeah, the workflow creates a tag for every (pre-/)release since it's required by GitHub. That way users can track down possible regressions from a trusted and permanent source, since builds uploaded to the workflow as artifacts expire after 3 months. With that in mind, creating new tags upon release can be disabled if you'd rather just reuse the |
Come to think of it, I might be able to just upload each new |
@kcat we might have an issue here: ThreeDeeJay#6 |
As discussed in #52 (comment), here are some changes I had proposed, plus some QoL improvements and fixes:
master
branch, since GitHub made it ridiculously hard to get the current commit's branch when the workflow has been triggered by a tag.Additional notes:
*.*.*
) tag to a commit and push it. That'll trigger a stable build that uses the last stable OpenAL Soft, so it might be a good idea to create it shortly after a stable OALS release 👀👌So e.g.:
https://github.com/ThreeDeeJay/dsoal/releases/tag/r648 - Triggered by new commits and daily schedule, may get overwritten
https://github.com/ThreeDeeJay/dsoal/releases/tag/latest-master - Same as above, except it always gets overwritten
https://github.com/ThreeDeeJay/dsoal/releases/tag/0.9.8 - Triggered by manually pushing a
*.*.*
tag, never gets overwritten (unless the tag gets re-assigned to another commit?)