Skip to content

Commit

Permalink
Update swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leoz committed Jan 23, 2024
1 parent 62fb1d5 commit 2dec04f
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,30 @@ on:
pull_request:
branches: [ "master" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
matrix:
platform:
- iOS
xcode:
- ^15

runs-on: macos-latest

steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: "5.8.0"
- name: Checkout
uses: actions/checkout@v3
- name: Get swift version
run: swift --version # Swift 5.8.0
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
uses: swift-actions/setup-swift@v1
- name: Print Swift version
run: swift --version
- name: Build & Test
uses: mxcl/xcodebuild@v1
with:
xcode: ${{ matrix.xcode }}
platform: ${{ matrix.platform }}

0 comments on commit 2dec04f

Please sign in to comment.