-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (35 loc) · 1.01 KB
/
swift.yml
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
35
36
37
name: build
on:
push:
branches: [ main, service-model-swift-code-generate-2.x, service-model-swift-code-generate-1.x ]
pull_request:
branches: [ main, service-model-swift-code-generate-2.x, service-model-swift-code-generate-1.x ]
jobs:
Build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
swift: ["5.7.2"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v1.21.0
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v2
- name: Build
run: swift build -c release
Build20:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
swift: ["5.6.3", "5.5.3"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v1.21.0
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v2
- name: Build
run: swift build -c release