From 10dcf88125c5f8751546cc4ac0e8834dcf0bad21 Mon Sep 17 00:00:00 2001 From: zhaixian Date: Thu, 7 Dec 2023 12:04:16 +0800 Subject: [PATCH 1/6] Create swift.yml --- .github/workflows/swift.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..cda61a2 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,22 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v From 0aced02857b158f39b7372c434e33de69b74002e Mon Sep 17 00:00:00 2001 From: zhaixian Date: Thu, 7 Dec 2023 12:18:43 +0800 Subject: [PATCH 2/6] chore: update swift-tools-version --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 5c97ab4..4a2f791 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.8 +// swift-tools-version: 5.7 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription From f1a45406d80f02e8489639a262d55498f7eca0f6 Mon Sep 17 00:00:00 2001 From: zhaixian Date: Thu, 7 Dec 2023 12:19:24 +0800 Subject: [PATCH 3/6] chore: update swift ci name --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index cda61a2..d4a6de4 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,7 +1,7 @@ # This workflow will build a Swift project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift -name: Swift +name: Swift CI on: push: From c48d07f0583b6f03d00a873264738bdde63dddb9 Mon Sep 17 00:00:00 2001 From: zhaixian Date: Thu, 7 Dec 2023 12:29:04 +0800 Subject: [PATCH 4/6] Update swift.yml --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index d4a6de4..bff08fd 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -17,6 +17,6 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build - run: swift build -v + run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios13.0-simulator" -v - name: Run tests run: swift test -v From c540d8105d5b8ea2f7fc7e2eac5da21037938aac Mon Sep 17 00:00:00 2001 From: zhaixian Date: Thu, 7 Dec 2023 12:34:49 +0800 Subject: [PATCH 5/6] Update swift.yml --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index bff08fd..9e1d6f5 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -19,4 +19,4 @@ jobs: - name: Build run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios13.0-simulator" -v - name: Run tests - run: swift test -v + run: swift test -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios13.0-simulator" -v From 7686b87a6600db14c52de175f3e32769d5af4c3a Mon Sep 17 00:00:00 2001 From: zhaixian Date: Thu, 7 Dec 2023 13:14:27 +0800 Subject: [PATCH 6/6] Update ci yml --- .github/workflows/{swift.yml => ios.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{swift.yml => ios.yml} (100%) diff --git a/.github/workflows/swift.yml b/.github/workflows/ios.yml similarity index 100% rename from .github/workflows/swift.yml rename to .github/workflows/ios.yml