Skip to content

Commit

Permalink
add github CI check for swift package
Browse files Browse the repository at this point in the history
Change-Id: Ia45477c74a6dceb85e67723bcc5cd12e321a975d
  • Loading branch information
yangkx1024 committed Nov 15, 2023
1 parent a15d1ce commit 310d325
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Swift

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]

jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5.2", "5.3"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: cd ios/MMKV; swift build
- name: Run tests
run: cd ios/MMKV; swift test

0 comments on commit 310d325

Please sign in to comment.