Skip to content

ci: install CPF Kotlin/Native before native tasks - #5

Closed
Tequilaar wants to merge 1 commit into
DeadlinerStudio:byosfrom
Tequilaar:mac/ci-native-toolchain
Closed

Tequilaar wants to merge 1 commit into
DeadlinerStudio:byosfrom
Tequilaar:mac/ci-native-toolchain

Conversation

@Tequilaar

Copy link
Copy Markdown

问题

「Apple and HarmonyOS native」任务在全新的 CI 机器上编译前就失败(例如 PR #4 的运行 41464277927):

Install CPF Native first: ./gradlew :shared:downloadKotlinNativeDistribution, then rerun.

runscript/native/shadow-stack-toolchain.gradle.kts 要求先单独执行一次 :shared:downloadKotlinNativeDistribution 安装 CPF 版 Kotlin/Native,之后才能运行原生任务;.github/workflows/build.yml 没有这一步。本地已经装过工具链的机器不受影响,所以只在 CI 上出现。

改动

在 Apple / HarmonyOS 任务的编译步骤前,新增一步「Install CPF Kotlin/Native」:

./gradlew :shared:downloadKotlinNativeDistribution --no-daemon --console=plain --stacktrace

只改 CI 配置,不涉及代码与接口。这个 PR 自己的 CI 运行即为验证。

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.
@Tequilaar

Copy link
Copy Markdown
Author

主开发者会自行修复 CI,关闭此 PR。

@Tequilaar Tequilaar closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant