Skip to content

Commit 8bff2ee

Browse files
committed
fix(ci): cross-compile x86_64 on macos-14 — avoid deprecated Intel runners
1 parent 63cdef8 commit 8bff2ee

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ jobs:
7777
name: switchy-arm64-dylib
7878
path: build/*.dylib
7979

80-
# ── Intel (x86_64) — builds the x86_64 slice for Universal ───────────────
80+
# ── Intel x86_64 cross-compiled on arm64 runner ───────────────────────────
81+
# macOS arm64 runners can cross-compile to x86_64 via -DCMAKE_OSX_ARCHITECTURES.
82+
# This avoids deprecated Intel-only runner labels (macos-12 retired Dec 2024).
8183
build-x86_64:
82-
name: macOS Intel (x86_64)
83-
runs-on: macos-13 # last Intel runner (macOS 13, not yet retired in this workflow)
84+
name: macOS Intel x86_64 (cross-compiled)
85+
runs-on: macos-14
8486
steps:
8587
- uses: actions/checkout@v4
8688

@@ -104,7 +106,7 @@ jobs:
104106
cd /tmp/obs-studio
105107
git sparse-checkout set libobs UI/obs-frontend-api
106108
107-
- name: Configure & build Switchy
109+
- name: Configure & build Switchy (x86_64 cross-compile)
108110
run: |
109111
cmake -B build -S . -G Ninja \
110112
-DCMAKE_BUILD_TYPE=Release \

0 commit comments

Comments
 (0)