refactor: verify-yakit-sign-build 打包文件拆分 逻辑简化#3966
Open
hjhke wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the verify-yakit-sign-build GitHub Actions workflow to simplify the packaging/signing flow by consolidating version/metadata preparation, reducing duplicated steps, and adding caching for signed Yak engine artifacts to speed up repeated verification builds.
Changes:
- Consolidates engine version resolution + software naming/version derivation into a single “Prepare build metadata” step.
- Adds an
actions/cachelayer for signed macOS Yak engine artifacts (zips + sha256 files) keyed by engine version. - Simplifies/streamlines render asset preparation and macOS artifact verification + upload naming.
Contributor
PR CI 汇总状态:全部通过
由 pull_request test workflow 自动生成 |
32080eb to
e2c27a3
Compare
| mkdir -p bins bins/scripts | ||
| wget -q -O bins/engine-version.txt https://yaklang.oss-accelerate.aliyuncs.com/yak/latest/version.txt | ||
| echo "ENGINE_VERSION=$(tr -d '\n' < bins/engine-version.txt)" >> "$GITHUB_ENV" | ||
| echo "SOFTWARE_VERSION=$(node -p "require('./package.json').version.replace(/-ce|-ee/g, '')")" >> "$GITHUB_ENV" |
Comment on lines
+32
to
+34
| for f in auto-install-cert.zip start-engine.zip google-chrome-plugin.zip; do | ||
| zip -qj "bins/scripts/$f" bins/flag.txt | ||
| done |
Comment on lines
+42
to
+46
| chmod +x ./packageScript/script/signature.sh | ||
| ./packageScript/script/signature.sh | ||
| wget -q -O bins/yak_darwin_amd64.sha256.txt "${YAK_BASE}/yak_darwin_amd64.sha256.txt" | ||
| wget -q -O bins/yak_darwin_arm64.sha256.txt "${YAK_BASE}/yak_darwin_arm64.sha256.txt" | ||
| ./packageScript/script/signature.sh build |
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.
Create a merge commit