-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 930 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
paths-ignore:
- README.md
- LICENSE
pull_request:
paths-ignore:
- README.md
- LICENSE
workflow_dispatch:
permissions:
contents: read
env:
DEVELOPER_DIR: /Applications/Xcode_16.2.app
jobs:
build:
name: Build & Test
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode 16
run: sudo xcode-select -s /Applications/Xcode_16.2.app
- name: Build
run: swift build
linux-build:
name: Linux Test
runs-on: ubuntu-latest
steps:
- name: Install Swift
# WORKAROUND:https://github.com/swift-actions/setup-swift/pull/680
uses: swift-actions/setup-swift@bb83339d1e8577741bdc6c65ba551ce7dc0fb854
with:
swift-version: '5.10.1'
- uses: actions/checkout@v4
- name: Build
run: swift build