Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.
Swift apple-silicond3dmetaldxmtdxvkfexgame-porting-toolkitgamingmac-gamingmacosmetalmoltenvksteamswiftuivkd3d-protonwhisky-alternativewindows-gameswinewine-wrapper
fix: explicit MainActor hops for older-Swift CI; pin Xcode 16 on runner
Gauthier Piarrettef6a2d3a9c858
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex b6bfe0b..48220c6 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -4,9 +4,11 @@ on:pull_request:jobs:build-test:- runs-on: macos-14+ runs-on: macos-15steps:- uses: actions/checkout@v4+ - name: Select Xcode 16+ run: sudo xcode-select -s /Applications/Xcode_16.1.app || sudo xcode-select -s /Applications/Xcode_16.0.app || true- name: Buildrun: swift build- name: Unit testsdiff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swiftindex 6868e78..b912a5c 100644--- a/Sources/HighballApp/BottleView.swift+++ b/Sources/HighballApp/BottleView.swift@@ -84,8 +84,10 @@ struct BottleView: View {Text("D3DMetal (needed for DirectX 12) requires accepting Apple’s Game Porting Toolkit license.").font(.caption).foregroundStyle(.secondary)Button("Review license…") {- state.loadGPTKLicense()- state.showGPTKLicense = true+ Task { @MainActor in+ state.loadGPTKLicense()+ state.showGPTKLicense = true+ }}.controlSize(.small)}}@@ -107,7 +109,7 @@ struct BottleView: View {set: { newValue invar copy = bottlecopy.settings[keyPath: keyPath] = newValue- state.update(copy)+ Task { @MainActor in state.update(copy) }})}}@@ -148,8 +150,10 @@ struct OnboardingView: View {HStack(spacing: 4) {Text("Requires accepting").font(.caption).foregroundStyle(.secondary)Button("Apple’s Game Porting Toolkit license") {- state.loadGPTKLicense()- state.showGPTKLicense = true+ Task { @MainActor in+ state.loadGPTKLicense()+ state.showGPTKLicense = true+ }}.buttonStyle(.link).font(.caption)}}