Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Swift 6.0 CI for building carton for macOS #483

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

omochi
Copy link
Contributor

@omochi omochi commented Jun 9, 2024

macのCIにSwift6.0を追加します。
そのままだと動かないので↓のハックをCIでインストールするときに適応します。
swiftlang/swift#73327 (comment)

6.0でビルドされたcartonがインストールするSwiftは5.10のままです。
これは別パッチにして後で出します。 #484 で作業しています。

そのため、この変更では、
cartonコードベースがSwift6.0でビルドできるかどうかを検証するだけで、
自動テストで動作検証する時の挙動は5.10のままです。

PRを提出するときに先頭コメントを書き換えました。
後続コメントは作業中のメモなので無視してください。

@omochi
Copy link
Contributor Author

omochi commented Jun 9, 2024

なんでLinuxがおるんや

@omochi omochi mentioned this pull request Jun 9, 2024
3 tasks
@omochi
Copy link
Contributor Author

omochi commented Jun 9, 2024

あ、ここか。エラーの行番号出してくれよなあ。

@omochi
Copy link
Contributor Author

omochi commented Jun 9, 2024

分岐はこれで良いっぽい

@omochi
Copy link
Contributor Author

omochi commented Jun 9, 2024

sudo installer -target CurrentUserHomeDirectory -pkg swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-08-a-osx.pkg
installer: Package name is Swift Open Source Xcode Toolchain
installer: Installing at base path /var/root
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An unexpected error occurred while moving files to the final destination.)

なんだろ?sudoがだめ?
まあcurrent userがおかしいしな

@omochi
Copy link
Contributor Author

omochi commented Jun 9, 2024

TOOLCHAINS=org.swift.600202406081a

Apple Swift version 6.0-dev (LLVM bf8bbb910874156, Swift a0bb875256e41ae)
Target: arm64-apple-macosx14.0

いけてそう。
そのさきで落ちるのは例のやつだろう。

@omochi
Copy link
Contributor Author

omochi commented Jun 9, 2024

あれ?パスを通すの忘れたけど、なんか進んでるな

@omochi omochi force-pushed the swift-6.0-mac branch 4 times, most recently from 1e92c2c to 1dd7798 Compare June 10, 2024 01:11
@omochi omochi changed the title [WIP] macのCI に Swift 6.0 を追加する macのCI に Swift 6.0 を追加する(ビルドするだけ) Jun 10, 2024
@omochi omochi changed the title macのCI に Swift 6.0 を追加する(ビルドするだけ) macのCI に Swift 6.0 を追加する(Cartonをビルドするだけ) Jun 10, 2024
@omochi omochi changed the title macのCI に Swift 6.0 を追加する(Cartonをビルドするだけ) macのCI に Swift 6.0 を追加する(ただしCartonをビルドするだけ) Jun 10, 2024
@omochi omochi marked this pull request as ready for review June 10, 2024 01:56
- os: macos-14
xcode: "15.4"
swift: "6.0"
swift-install:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcodeを切り替えるだけでは済まないパターンの場合はこの swift-install を設定することとします。

@@ -28,6 +34,13 @@ jobs:
- name: Select Xcode version
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

- name: Install Swift ${{ matrix.swift }}
if: ${{ matrix.swift-install != null }}
run: bash ci/mac/install-swift.bash
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if で分岐してからスクリプトに入ります。

@omochi
Copy link
Contributor Author

omochi commented Jun 10, 2024

変なdiffがあるな、ちょい待って OK

@kateinoigakukun kateinoigakukun changed the title macのCI に Swift 6.0 を追加する(ただしCartonをビルドするだけ) Add Swift 6.0 CI for building carton for macOS Jun 10, 2024
@kateinoigakukun kateinoigakukun merged commit 2f6de6c into swiftwasm:main Jun 10, 2024
5 checks passed
@omochi omochi deleted the swift-6.0-mac branch June 10, 2024 02:57
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.

None yet

2 participants