Slang のバージョンを更新し、XCFramework をビルドしてバイナリリリースを作成する。ローカルでのビルドが必要。
更新先バージョン: $ARGUMENTS (例: v2025.22)
以下のツールがインストールされているか確認する:
cmake --version && ninja --version && xcodebuild -version
git submodule update --init --recursive
cd slang
git fetch --tags
git checkout $ARGUMENTS
cd ..
slang サブモジュールから最新ヘッダーを Sources/Slang/include/ にコピーする:
cp slang/include/slang.h Sources/Slang/include/
cp slang/include/slang-com-ptr.h Sources/Slang/include/
cp slang/include/slang-com-helper.h Sources/Slang/include/
重要: コピー後、各ヘッダーファイルの先頭にライセンスヘッダーが残っているか確認する。元のファイルにある以下のブロックが消えていたら復元すること:
/*
* Slang
* https://github.com/shader-slang/slang
* Copyright (c) 2017 Slang Contributors
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* See LICENSE.txt in this directory for the full license text.
*/
ヘッダーに差分があるか git diff で確認し、API の破壊的変更がないかユーザーに報告する。
make clean
make all
ビルドには 10〜30 分かかる。ビルド完了後、成果物を確認:
make verify
cat xcframework/SlangBinary.xcframework.zip.checksum
Slang バイナリ専用のリリースを作成する。タグ形式は slang-binary/$ARGUMENTS:
gh release create "slang-binary/$ARGUMENTS" \
xcframework/SlangBinary.xcframework.zip \
--title "Slang Binary $ARGUMENTS" \
--notes "Slang $ARGUMENTS のプリビルド XCFramework (iOS Device + Simulator)"
Package.swift の binaryTarget を更新する:
url: 新しいリリースの URL に変更checksum: 新しい checksum に変更.binaryTarget(
name: "SlangBinary",
url: "https://github.com/shivaduke28/swift-slang/releases/download/slang-binary/$ARGUMENTS/SlangBinary.xcframework.zip",
checksum: "<checksumファイルの値>"
),
README.md の Slang バージョン表記を更新する。
変更をコミットする(コミットメッセージにキャラ口調を使わないこと):
Update Slang to $ARGUMENTS
/create-release でパッケージリリースを作成できる