-
Notifications
You must be signed in to change notification settings - Fork 262
51 lines (39 loc) · 1.35 KB
/
xcode.yml
File metadata and controls
51 lines (39 loc) · 1.35 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
name: Swift
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
# - name: Checkout esctest for testing
# uses: actions/checkout@v4
# with:
# repository: migueldeicaza/esctest
# ref: python3
# path: esctest
- name: List all files, because this is driving me insane, this does not repro anywhere but github
run: ls -lR
- name: Xcode Mac Build
run: xcodebuild -project TerminalApp/MacTerminal.xcodeproj -scheme MacTerminal
- name: Xcode iOS Build
run: |
xcodebuild -project TerminalApp/iOSTerminal.xcodeproj -scheme iOSTerminal -destination 'generic/platform=iOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: Swift Package Build
run: swift build -v
- name: Run tests
env:
SWIFT_TEST_DISABLE_PARALLELIZATION: "1"
run: swift test -v
- name: Coverage
env:
SWIFT_TEST_DISABLE_PARALLELIZATION: "1"
run: |
swift test --enable-code-coverage
BINDIR=$(swift build --show-bin-path)
xcrun llvm-cov report "$BINDIR/SwiftTermPackageTests.xctest/Contents/MacOS/SwiftTermPackageTests" --instr-profile=.build/debug/codecov/default.profdata -use-color