From 55f0bb2af90f6685de87744f906258deec2c7b78 Mon Sep 17 00:00:00 2001 From: Yuzhe Yan Date: Mon, 2 Nov 2026 15:51:47 +0100 Subject: [PATCH] ci: install CPF Kotlin/Native before native tasks 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. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4940c07..10b15ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,6 +44,10 @@ jobs: distribution: temurin java-version: "21" - uses: gradle/actions/setup-gradle@v4 + # runscript/native/shadow-stack-toolchain.gradle.kts requires the CPF Kotlin/Native + # distribution to be installed by its own invocation before any native task runs. + - name: Install CPF Kotlin/Native + run: ./gradlew :shared:downloadKotlinNativeDistribution --no-daemon --console=plain --stacktrace - name: Compile Apple and HarmonyOS packages, then run native tests run: >- ./gradlew