-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (50 loc) · 1.66 KB
/
Copy pathci.yml
File metadata and controls
57 lines (50 loc) · 1.66 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
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build (Debug)
runs-on: macos-14
steps:
- uses: actions/checkout@v5
# The macos-14 image still defaults to Xcode 15.4, whose stricter Swift
# concurrency checking rejects code this project compiles cleanly under
# Xcode 16 (the declared toolchain — see AGENT.md). Select the newest
# installed Xcode 16 so CI matches local builds.
- name: Select Xcode 16
run: |
XCODE=$(ls -d /Applications/Xcode_16*.app 2>/dev/null | sort -V | tail -n1)
if [ -z "$XCODE" ]; then
XCODE=$(ls -d /Applications/Xcode_*.app | sort -V | tail -n1)
fi
echo "Selecting $XCODE"
sudo xcode-select -s "$XCODE/Contents/Developer"
- name: Show Xcode version
run: xcodebuild -version
- name: Test sync v2, encryption, and transports
run: |
swiftc \
Clipth/Models/SyncModels.swift \
Clipth/Services/SyncSecurity.swift \
Clipth/Services/SyncTransports.swift \
scripts/SyncCoreTests.swift \
-o /tmp/clipth-sync-tests
/tmp/clipth-sync-tests
- name: Build
run: |
xcodebuild \
-project Clipth.xcodeproj \
-scheme Clipth \
-configuration Debug \
-destination 'platform=macOS' \
-derivedDataPath build \
-skipMacroValidation \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
build