Repository navigation
Conversation
shadow-stack-toolchain.gradle.kts refuses native tasks until :shared:downloadKotlinNativeDistribution has run on its own, so the Apple and HarmonyOS job failed on fresh runners before compiling.
Author
|
主开发者会自行修复 CI,关闭此 PR。 |
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.
问题
「Apple and HarmonyOS native」任务在全新的 CI 机器上编译前就失败(例如 PR #4 的运行 41464277927):
runscript/native/shadow-stack-toolchain.gradle.kts要求先单独执行一次:shared:downloadKotlinNativeDistribution安装 CPF 版 Kotlin/Native,之后才能运行原生任务;.github/workflows/build.yml没有这一步。本地已经装过工具链的机器不受影响,所以只在 CI 上出现。改动
在 Apple / HarmonyOS 任务的编译步骤前,新增一步「Install CPF Kotlin/Native」:
只改 CI 配置,不涉及代码与接口。这个 PR 自己的 CI 运行即为验证。