-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
615dfd7
commit 9fde4a3
Showing
7 changed files
with
91 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Swift | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: swift | ||
|
||
jobs: | ||
build-ubuntu-latest: | ||
name: Swift ${{ matrix.swift }} on ubuntu-latest | ||
strategy: | ||
matrix: | ||
# ubuntu swift5.6及以下版本下载会报gpg签名错误,已知bug等官方解决 | ||
swift: ["5.7", "5.8", "5.9", "5.10"] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: swift-actions/setup-swift@v2 | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: swift build -v | ||
- name: Run tests | ||
run: swift test -v | ||
|
||
build-macos-latest: | ||
name: Swift ${{ matrix.swift }} on macos-latest | ||
strategy: | ||
matrix: | ||
swift: ["5.9", "5.10"] | ||
fail-fast: false | ||
runs-on: macos-latest | ||
steps: | ||
- uses: swift-actions/setup-swift@v2 | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
- uses: actions/checkout@v4 | ||
- name: Verify Xcode Version | ||
run: xcodebuild -version | ||
- name: Build | ||
run: swift build -v | ||
- name: Run tests | ||
run: swift test -v | ||
|
||
build-macos-11: | ||
name: Swift ${{ matrix.swift }} on macos-11 | ||
strategy: | ||
matrix: | ||
swift: ["5.6", "5.7", "5.8"] | ||
fail-fast: false | ||
runs-on: macos-11 | ||
steps: | ||
- uses: swift-actions/setup-swift@v2 | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: swift build -v | ||
- name: Run tests | ||
run: swift test -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
// swift-tools-version:5.1 | ||
// swift-tools-version:5.6 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "TeaFileForm", | ||
platforms: [.macOS(.v10_15), | ||
.iOS(.v13), | ||
.tvOS(.v13), | ||
.watchOS(.v6)], | ||
products: [ | ||
.library( | ||
name: "TeaFileForm", | ||
targets: ["TeaFileForm"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/aliyun/tea-swift.git", from: "0.3.0") | ||
.package(url: "https://github.com/aliyun/tea-swift.git", from: "1.0.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "TeaFileForm", | ||
dependencies: ["Tea"]), | ||
dependencies: [ | ||
.product(name: "Tea", package: "tea-swift") | ||
]), | ||
.testTarget( | ||
name: "TeaFileFormTests", | ||
dependencies: ["TeaFileForm", "Tea"]), | ||
] | ||
dependencies: [ | ||
"TeaFileForm", | ||
.product(name: "Tea", package: "tea-swift") | ||
]), | ||
], | ||
swiftLanguageVersions: [.v5] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.