From 643082ebad353eb511b66ea3924ce5764574edb7 Mon Sep 17 00:00:00 2001 From: Jean-Emmanuel BAILLAT Date: Mon, 26 Oct 2026 22:59:56 +0100 Subject: [PATCH] ci: pin macos-15, Xcode 26.3 and the 10.0.203 iOS toolchain macos-latest and unpinned SDK/workload installs let the runner build the native artifacts with whatever Xcode and iOS packs the image ships. Consumers building with Xcode 26.3 could then fail to link the published package. Pin the runner, select Xcode 26.3, and install SDK and workload set 10.0.203, the same baseline as the other iOS interop packages. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 9 ++++++--- .github/workflows/publish.yml | 10 +++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1c6359..2f72fa7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,14 +9,17 @@ permissions: jobs: build_pack_ios: - runs-on: macos-latest + runs-on: macos-15 steps: - uses: actions/checkout@v4 + - name: Select Xcode 26.3 + # Pinned: the native artifacts must stay consumable by Xcode 26.3 toolchains. + run: sudo xcode-select --switch /Applications/Xcode_26.3.app/Contents/Developer - uses: actions/setup-dotnet@v4 with: - dotnet-version: "10.0.x" + dotnet-version: "10.0.203" - name: Install iOS workload - run: dotnet workload install ios + run: dotnet workload install ios --version 10.0.203 - name: Build pinned Core + Share wrapper run: bash src/Kapusch.TikTokApisForiOSComponents/Native/iOS/build.sh - name: Pack diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 082b61b..70af277 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ permissions: jobs: pack_and_publish: - runs-on: macos-latest + runs-on: macos-15 permissions: contents: read packages: write @@ -58,12 +58,16 @@ jobs: echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "publish_target=$PUBLISH_TARGET" >> "$GITHUB_OUTPUT" + - name: Select Xcode 26.3 + # Pinned: the native artifacts must stay consumable by Xcode 26.3 toolchains. + run: sudo xcode-select --switch /Applications/Xcode_26.3.app/Contents/Developer + - uses: actions/setup-dotnet@v4 with: - dotnet-version: "10.0.x" + dotnet-version: "10.0.203" - name: Install iOS workload - run: dotnet workload install ios + run: dotnet workload install ios --version 10.0.203 - name: Build pinned Core + Share wrapper run: bash src/Kapusch.TikTokApisForiOSComponents/Native/iOS/build.sh