From 4f1dfd549c2e6422270b260a3956160775d34958 Mon Sep 17 00:00:00 2001 From: Dominik Bucher Date: Fri, 12 Jan 2024 14:40:53 +0100 Subject: [PATCH] Explicitly run macOS 14 SDK --- .github/workflows/swift.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 2d1e640df..8ee3137f1 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -12,6 +12,8 @@ on: jobs: build: runs-on: macos-13 + env: + SDK_VERSION: 'macosx14.0' steps: - uses: actions/checkout@v3 - name: Select Xcode version @@ -21,8 +23,10 @@ jobs: swift-version: "5.8" - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '15.2' + xcode-version: '15.1' - name: Build - run: swift build -v + run: | + SDKROOT=$SDK_VERSION swift build -v - name: Run tests - run: swift test -v \ No newline at end of file + run: | + SDKROOT=$SDK_VERSION swift test -v \ No newline at end of file