-
-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (44 loc) · 1.39 KB
/
Copy pathci.yml
File metadata and controls
53 lines (44 loc) · 1.39 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
# Relay requires macOS 26 (Tahoe) and Xcode 26.
# If macos-26 is unavailable, check GitHub's runner images documentation
# for the current label: https://github.com/actions/runner-images
runs-on: macos-26
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode 26
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Create empty Secrets.xcconfig
run: touch Secrets.xcconfig
- name: Generate Secrets.swift
run: bash scripts/generate-secrets.sh
env:
SRCROOT: ${{ github.workspace }}
- name: Cache SPM packages
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData/**/SourcePackages
key: spm-${{ runner.os }}-${{ hashFiles('Relay.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
restore-keys: spm-${{ runner.os }}-
- name: Build
run: |
xcodebuild -project Relay.xcodeproj \
-scheme Relay \
-destination 'platform=macOS' \
-configuration Debug \
CODE_SIGNING_ALLOWED=NO \
clean build