-
Notifications
You must be signed in to change notification settings - Fork 68
77 lines (67 loc) · 2.24 KB
/
Copy pathadapter-studio.yml
File metadata and controls
77 lines (67 loc) · 2.24 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
76
77
name: Adapter Studio
on:
pull_request:
branches: [main]
paths:
- 'Foundation Lab/AdapterStudio/**'
- 'Foundation Lab/Models/Workspace*.swift'
- 'Foundation Lab/Models/ExperimentTemplate*.swift'
- 'Foundation Lab/Views/WorkspaceView.swift'
- 'Foundation Lab/Views/Library/**'
- 'Tools/AdapterStudio/**'
- 'FoundationLab.xcodeproj/**'
- '.swiftlint-adapter-studio.yml'
- '.github/workflows/adapter-studio.yml'
push:
branches: [main]
paths:
- 'Foundation Lab/AdapterStudio/**'
- 'Foundation Lab/Models/Workspace*.swift'
- 'Foundation Lab/Models/ExperimentTemplate*.swift'
- 'Foundation Lab/Views/WorkspaceView.swift'
- 'Foundation Lab/Views/Library/**'
- 'Tools/AdapterStudio/**'
- 'FoundationLab.xcodeproj/**'
- '.swiftlint-adapter-studio.yml'
- '.github/workflows/adapter-studio.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: adapter-studio-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: macos-26
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install SwiftLint
run: brew install swiftlint
- name: Test fmas
run: |
python -m pip install --disable-pip-version-check -e Tools/AdapterStudio
python -m unittest discover -s Tools/AdapterStudio/tests -v
fmas --version
- name: Lint Foundation Lab
run: swiftlint lint --strict --config .swiftlint-adapter-studio.yml
- name: Build Foundation Lab for macOS
run: |
xcodebuild \
-project FoundationLab.xcodeproj \
-scheme 'Foundation Lab' \
-destination 'generic/platform=macOS' \
CODE_SIGNING_ALLOWED=NO \
build
- name: Build Foundation Lab for iOS Simulator
run: |
xcodebuild \
-project FoundationLab.xcodeproj \
-scheme 'Foundation Lab' \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGNING_ALLOWED=NO \
build