From c0f5cdb24144fc787403536ccee145f63dbbf5cc Mon Sep 17 00:00:00 2001 From: hengyu Date: Tue, 5 Dec 2023 17:04:18 +0800 Subject: [PATCH] Update Swift version --- .github/workflows/main.yml | 8 +++++--- Package.swift | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b266824..7ec7802 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,13 @@ on: jobs: main: - runs-on: macos-12 + runs-on: macos-13 steps: - - uses: swift-actions/setup-swift@v1.19.0 + - name: Select Xcode version + run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer' + - uses: swift-actions/setup-swift@v1 with: - swift-version: "5.7.0" + swift-version: "5.9.0" - uses: actions/checkout@v3 - uses: actions/cache@v3 with: diff --git a/Package.swift b/Package.swift index 6027988..0bed806 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.7 +// swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription