-
Notifications
You must be signed in to change notification settings - Fork 71
58 lines (45 loc) · 1.28 KB
/
build.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: build
on:
pull_request:
branches:
- main
paths:
- '**/*.swift'
- '.github/workflows/build.yml'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- branch: swift-5.4.3-release
tag: 5.4.3-RELEASE
options: '-Xmanifest -use-ld=link -Xswiftc -use-ld=link'
- branch: swift-5.5.3-release
tag: 5.5.3-RELEASE
options: '-Xmanifest -use-ld=link -Xswiftc -use-ld=link'
- branch: swift-5.6.3-release
tag: 5.6.3-RELEASE
options: ''
- branch: swift-5.7.3-release
tag: 5.7.3-RELEASE
options: ''
- branch: swift-5.8.1-release
tag: 5.8.1-RELEASE
options: ''
- branch: development
tag: DEVELOPMENT-SNAPSHOT-2023-08-12-a
options: ''
name: Swift ${{ matrix.tag }}
steps:
- uses: compnerd/gha-setup-swift@main
with:
tag: ${{ matrix.tag }}
branch: ${{ matrix.branch }}
- uses: actions/checkout@v3
- name: Build
run: swift build -v ${{ matrix.options }}
- name: Run tests
run: swift test -v -Xswiftc -DENABLE_TESTING ${{ matrix.options }}