-
Notifications
You must be signed in to change notification settings - Fork 297
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
9067413
commit d94055f
Showing
1 changed file
with
27 additions
and
15 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 |
---|---|---|
|
@@ -2,33 +2,45 @@ name: Swift Package | |
|
||
on: | ||
pull_request: | ||
paths: | ||
- "Package.swift" | ||
paths: Package.swift | ||
|
||
jobs: | ||
build: | ||
name: Swift ${{ matrix.swift }} | ||
build-5_7: | ||
name: Swift 5.7 | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
swift: ["5.7", "5.8"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_VERIFY }} | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
log-public-key: false | ||
- uses: swift-actions/[email protected] | ||
- name: Setup Swift 5.7 | ||
uses: swift-actions/[email protected] | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
- name: Set CBL Version | ||
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: | | ||
export VERSION=$(awk -F'/' '/url:/{print $6}' Package.swift | cut -d'_' -f3) | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
./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/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
log-public-key: false | ||
- name: Setup Swift 5.8 | ||
uses: swift-actions/[email protected] | ||
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 -ce -v $VERSION | ||
./couchbase-lite-ios-release-verify/Scripts/verify_spm.sh -b ${{ github.head_ref }} -ce |