build: compile xtool with Swift 6.4 (#272)
- Commit
1f28a80a13b86f586346308ff1c4ba872afb04b6- Author
- Kabir Oberai <[email protected]>
- When
- 2026-10-04 20:53 UTC (2 months ago)
- Parents
5807d01
## What does this PR do? Updates workflows to build with Swift 6.4. Blockers: - [x] ~~GitHub's macos-26 runners don't yet support Xcode 27~~ They've moved to a new nomenclature where the runner tracks the Xcode major version. The new runner is `xcode-27`. - [x] ~~Linux AppImage builds are failing due to https://github.com/swiftlang/swift-build/issues/1764 (will be fixed in 6.4.1)~~ Switched to dynamic linking ## How was it tested? - [x] Built locally with Xcode 27 and confirmed it runs - [x] Built locally with `swift:6.4.0` docker image and confirmed it runs ## AI tool usage How much of this PR was AI-assisted? (check one) - [x] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is swiftlang/swift-package-manager#2. Do not lower the declared level to get the PR reviewed. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Build & Release** * macOS and iOS builds and macOS releases now use Xcode 27. * Swift has been updated to version 6.4.0 for Docker and Netlify builds. * **Bug Fixes** * Linux packaging no longer copies `.resources` files into the AppDir, which may affect packaged app resources. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Diff
.github/actions/configure-xcode/action.yml
diff --git a/.github/actions/configure-xcode/action.yml b/.github/actions/configure-xcode/action.ymlindex e809abb..c78d93f 100644--- a/.github/actions/configure-xcode/action.yml+++ b/.github/actions/configure-xcode/action.yml@@ -6,4 +6,4 @@ runs: - name: Set up Xcode shell: bash run: |- sudo xcode-select -s /Applications/Xcode_26.4.app+ sudo xcode-select -s /Applications/Xcode_27.0.0.app
.github/workflows/build.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 5b2c158..8aa9b1f 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -27,7 +27,7 @@ jobs: docker compose run --build -e XTL_CI=1 xtool bash -c \ "swift build --product xtool && .build/debug/xtool --help && swift test" build-macos:- runs-on: macos-26+ runs-on: xcode-27 steps: - name: Checkout uses: actions/checkout@v6@@ -39,7 +39,7 @@ jobs: run: | swift test build-ios:- runs-on: macos-26+ runs-on: xcode-27 steps: - name: Checkout uses: actions/checkout@v6
.github/workflows/release.yml
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a94fc30..16f5fda 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -36,7 +36,7 @@ jobs: Linux/packages/xtool-${{ matrix.host.arch }}.AppImage Linux/packages/xtool-${{ matrix.host.arch }}.AppImage.zsync build-mac:- runs-on: macos-26+ runs-on: xcode-27 permissions: contents: write steps:
Dockerfile
diff --git a/Dockerfile b/Dockerfileindex c8ecc16..1a92668 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,7 +1,7 @@ # Note: We use 22.04 since AppImage recommends building on the # oldest configuration that you support -ARG SWIFT_VERSION=6.3.3+ARG SWIFT_VERSION=6.4.0 FROM swift:${SWIFT_VERSION}-jammy AS build-base
Linux/build.sh
diff --git a/Linux/build.sh b/Linux/build.shindex 0bf1492..299c535 100755--- a/Linux/build.sh+++ b/Linux/build.sh@@ -38,7 +38,7 @@ if [[ ! -f staging/linuxdeploy/linuxdeploy.AppImage ]]; then fi mkdir -p staging/tmp/AppDir/usr/bin-find "${bin}"/ -name '*.resources' -print0 | xargs -0 -I {} cp -a {} "${PWD}/staging/tmp/AppDir/usr/bin/"+find "${bin}"/ -name '*.resources' -or -name '*.bundle' -print0 | xargs -0 -I {} cp -a {} "${PWD}/staging/tmp/AppDir/usr/bin/" export LINUXDEPLOY_OUTPUT_VERSION="${XTOOL_VERSION:-unversioned}" export LDAI_OUTPUT="staging/tmp/xtool-${curr_arch}.AppImage"
netlify.toml
diff --git a/netlify.toml b/netlify.tomlindex 4742571..1408604 100644--- a/netlify.toml+++ b/netlify.toml@@ -5,7 +5,7 @@ base = "Documentation/" publish = "xtool.docc/.docc-build" command = "./build.sh"- environment = { SWIFT_VERSION = "6.3" }+ environment = { SWIFT_VERSION = "6.4.0" } ignore = "git -C .. diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- Documentation netlify.toml" [[redirects]]