aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/swift.yml
blob: d3825be3c3ab52747762604df8b6083f91670f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

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

    runs-on: macos-13

    steps:
    - name: Checkout
      uses: actions/checkout@v3
    - name: Get swift version
      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 }}