mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-11 22:38:01 +00:00
ci: build with the default Xcode's toolchain, not the newer Command Line Tools
The macos-26-arm64 image 20261013 adds Command Line Tools 27, and links resolved system libraries in its macOS 27 SDK, which the linker rejects (tapi error: unknown architecture arm64e.x1-macos; run 38702428043). DEVELOPER_DIR points the xcrun shims that GHC and prepare-libs.sh call at /Applications/Xcode.app. The Show runner steps print the SDK in use. This run tests the backend build on the new image; core comes from run 38702428043's artifact.
This commit is contained in:
1 parent
36c9a065d9
commit
25c48234f5
1 file changed
+13
@@ -21,6 +21,8 @@ env:
|
||||
BACKEND_PKG: ios-sim-backend.zip
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||
# newer images add Command Line Tools whose macOS SDK the default Xcode's linker cannot read
|
||||
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
|
||||
|
||||
jobs:
|
||||
plan:
|
||||
@@ -71,6 +73,8 @@ jobs:
|
||||
sysctl -n hw.ncpu hw.memsize
|
||||
df -h /
|
||||
xcodebuild -version
|
||||
xcrun --show-sdk-path
|
||||
ls /Library/Developer/CommandLineTools/SDKs || true
|
||||
|
||||
# without ~/.cabal, cabal 3.10 keeps its store in XDG directories, not where setup-haskell reports it
|
||||
- name: Use ~/.cabal for cabal
|
||||
@@ -133,6 +137,13 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Show runner
|
||||
run: |
|
||||
sw_vers
|
||||
xcodebuild -version
|
||||
xcrun --show-sdk-path
|
||||
ls /Library/Developer/CommandLineTools/SDKs || true
|
||||
|
||||
- name: Use ~/.cabal for cabal
|
||||
run: echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
|
||||
|
||||
@@ -192,6 +203,8 @@ jobs:
|
||||
sw_vers
|
||||
df -h /
|
||||
xcodebuild -version
|
||||
xcrun --show-sdk-path
|
||||
ls /Library/Developer/CommandLineTools/SDKs || true
|
||||
xcrun simctl list runtimes
|
||||
|
||||
- name: Download core library
|
||||
|
||||
Reference in new issue
Block a user