From 2dec04fe6c1de11d9270c714da86de9f2a7713f5 Mon Sep 17 00:00:00 2001 From: Leonid Zolotarev Date: Mon, 22 Jan 2024 21:02:44 -0500 Subject: [PATCH] Update swift.yml --- .github/workflows/swift.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 9c11ccb..bd126f6 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -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 }}