Skip to content

Commit

Permalink
package validation
Browse files Browse the repository at this point in the history
  • Loading branch information
velicuvlad committed Jul 31, 2023
1 parent 9067413 commit d94055f
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/check_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d94055f

Please sign in to comment.