This repository was archived by the owner on Jul 28, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (94 loc) · 2.68 KB
/
Copy pathci.yml
File metadata and controls
100 lines (94 loc) · 2.68 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
macos-swift60:
name: macOS (Swift 6.0)
runs-on: macos-26
strategy:
matrix:
xcode: ['26.0']
config: ['debug', 'release']
steps:
- uses: actions/checkout@v5
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Print Swift version
run: swift --version
- name: Cache Swift packages
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }}
restore-keys: ${{ runner.os }}-spm-
- name: Build
run: swift build -c ${{ matrix.config }}
- name: Run tests
run: swift test -c ${{ matrix.config }}
macos-swift62:
name: macOS (Swift 6.2)
runs-on: macos-26
strategy:
matrix:
xcode: ['26.0']
config: ['debug', 'release']
steps:
- uses: actions/checkout@v5
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Print Swift version
run: swift --version
- name: Cache Swift packages
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }}
restore-keys: ${{ runner.os }}-spm-
- name: Build
run: swift build -c ${{ matrix.config }}
- name: Run tests
run: swift test -c ${{ matrix.config }}
linux-swift62:
name: Ubuntu (Swift 6.2)
runs-on: ubuntu-latest
container: swift:6.2
steps:
- uses: actions/checkout@v5
- name: Cache Swift packages
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }}
restore-keys: ${{ runner.os }}-spm-
- name: Build
run: swift build
- name: Run tests
run: swift test
windows:
name: Windows (Swift 6.2)
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: "6.2"
- name: Build
run: swift build
- name: Run tests
run: swift test
readme-validation:
name: README Code Examples
runs-on: macos-26
steps:
- uses: actions/checkout@v5
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_26.0.app
- name: Run README verification tests
run: swift test --filter ReadmeVerificationTests