diff --git a/.github/workflows/check_package.yml b/.github/workflows/check_package.yml new file mode 100644 index 000000000..0e6a00f1f --- /dev/null +++ b/.github/workflows/check_package.yml @@ -0,0 +1,46 @@ +name: Swift Package + +on: + pull_request: + paths: Package.swift + +jobs: + build-5_7: + name: Swift 5.7 + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + log-public-key: false + - name: Setup Swift 5.7 + uses: swift-actions/setup-swift@v1.23.0 + with: + swift-version: "5.7" + - name: Checkout couchbase-lite-ios-release-verify + run: | + git clone https://github.com/couchbaselabs/couchbase-lite-ios-release-verify.git + - name: Validate + run: | + ./couchbase-lite-ios-release-verify/Scripts/verify_spm.sh -b ${{ github.head_ref }} -ce + + build-5_8: + name: Swift 5.8 + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + log-public-key: false + - name: Setup Swift 5.8 + uses: swift-actions/setup-swift@v1.23.0 + with: + swift-version: "5.8" + - name: Checkout couchbase-lite-ios-release-verify + run: | + git clone https://github.com/couchbaselabs/couchbase-lite-ios-release-verify.git + - name: Validate + run: | + ./couchbase-lite-ios-release-verify/Scripts/verify_spm.sh -b ${{ github.head_ref }} -ce \ No newline at end of file diff --git a/Package.swift b/Package.swift index 0147b67b1..a8248776a 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "CouchbaseLiteSwift", platforms: [ - .iOS(.v10), .macOS(.v10_12) + .iOS(.v11), .macOS(.v10_14) ], products: [ .library( @@ -14,8 +14,8 @@ let package = Package( targets: [ .binaryTarget( name: "CouchbaseLiteSwift", - url: "https://packages.couchbase.com/releases/couchbase-lite-ios/3.1.0/couchbase-lite-swift_xc_community_3.1.0.zip", - checksum: "556d6ae41df3b5ebf91dbe45d38214dd7032f97ac1b132f925356d20e3b9ada5" + url: "https://packages.couchbase.com/releases/couchbase-lite-ios/3.1.1/couchbase-lite-swift_xc_community_3.1.1.zip", + checksum: "bbee6e7f554285ed58dfee06122ba4124b11e7188ce0271db440c253ba278163" ) ] ) diff --git a/README.md b/README.md index a5ca3d733..e61c7c329 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Couchbase Lite implementation is on top of [Couchbase Lite Core](https://github. dependencies: [ .package(name: "CouchbaseLiteSwift", url: "https://github.com/couchbase/couchbase-lite-ios.git", - from: "3.1.0"), + from: "3.1.1"), ], ``` @@ -31,7 +31,7 @@ dependencies: [ dependencies: [ .package(name: "CouchbaseLiteSwift", url: "https://github.com/couchbase/couchbase-lite-swift-ee.git", - from: "3.1.0"), + from: "3.1.1"), ], ```