runtime-api の公開ターゲット拡張と取りこぼし検知 - #43
Merged
Merged
Conversation
linuxArm64 と androidNative 系 4 種(Arm32 / Arm64 / X64 / X86)を宣言し、 公開対象を 11 から 16 ターゲットへ広げる。 klib はホストに依らず生成できるため、宣言の追加だけで全ターゲットの publication が成立する(Windows ホストでの publishToMavenLocal で実測)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ホストが賄えない native ターゲットは kotlin.native.ignoreDisabledTargets により publication ごと静かに落ちるため、成果物が欠けたまま公開が成功しうる。 runtime-api へ checkPublishableTargets を追加し、宣言ターゲットが全て publishable であることをリモート公開の前提として検査する。ローカル公開は ホスト差の吸収を前提とするフィクスチャ経路のため対象にしない。 CD では長いゲートの前で落とすために先頭へ置き、CI では CD と同じ macos ランナーで PR の時点から検出する。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
概要
runtime-apiの公開ターゲットへlinuxArm64と androidNative 系 4 種を加え、あわせて「宣言したターゲットが公開から静かに落ちる」経路を検知する検査を入れる。変更
build:linuxArm64/androidNativeArm32/androidNativeArm64/androidNativeX64/androidNativeX86を宣言(11 → 16 ターゲット)。README と実装ノートのターゲット一覧も追随ci:checkPublishableTargetsを追加し、リモート公開タスクの依存とする。CD は長いゲートの前で落とすため先頭へ、CI は CD と同じ macos ランナーへ配置検知する事象
ホストが賄えない native ターゲットの publication は
kotlin.native.ignoreDisabledTargetsにより静かに落ち、成果物が欠けたままビルドが成功する。検査はこの状態を公開前にエラーにする。実測(Windows ホスト)
publishToMavenLocalが成立(公開モジュール 16 + root)-Pkotlin.native.enableKlibsCrossCompilation=falseで Apple 系を賄えない状態を再現すると、publishToMavenLocalは Apple 系の publication を実行しないまま 成功(=取りこぼし)/checkPublishableTargetsは該当 5 ターゲットを挙げて失敗./gradlew buildgreen・ktfmtCheckgreenmacos / ubuntu ランナーでの成立確認は本 PR の CI に委ねる。
🤖 Generated with Claude Code