aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-swift.yml
blob: 9d9f3cc1a14765c9b41eeae3b9411255547fb80c (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
# This workflow will build a Swift project

name: Build

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 }}