forked from rryam/VecturaKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
75 lines (70 loc) · 1.63 KB
/
Copy pathcodemagic.yaml
File metadata and controls
75 lines (70 loc) · 1.63 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
definitions:
triggering:
push: &events
events:
- push
- pull_request
scripts:
- &swiftlint
name: SwiftLint
script: |
#!/bin/zsh
swiftlint --strict
- &build_framework
name: Build Framework
script: |
#!/bin/zsh
xcodebuild clean build \
-scheme "$XCODE_SCHEME" \
-destination "platform=macOS" \
-skipPackagePluginValidation
- &run_tests
name: Run Tests
script: |
#!/bin/zsh
# Set environment variables for model downloads
export HF_HUB_OFFLINE=0
# Run core tests (excluding 30-min PerformanceTests suite)
# Using --no-parallel to avoid concurrent model download issues
swift test --no-parallel --skip PerformanceTests
workflows:
vecturakit:
name: VecturaKit Workflow
environment:
xcode: 26.0
vars:
XCODE_SCHEME: "VecturaKit"
APP_ID: "VecturaKit"
when:
changeset:
includes:
- 'Sources'
- 'Tests'
triggering:
<<: *events
scripts:
- *swiftlint
- *build_framework
- *run_tests
vecturamlxkit:
name: VecturaMLXKit Workflow
environment:
xcode: 26.0
vars:
XCODE_SCHEME: "VecturaMLXKit"
APP_ID: "VecturaMLXKit"
when:
changeset:
includes:
- 'Sources'
- 'Tests'
triggering:
<<: *events
scripts:
- *swiftlint
- name: Install Metal Toolchain
script: |
#!/bin/zsh
xcodebuild -downloadComponent MetalToolchain
- *build_framework
- *run_tests