Skip to content

Commit d119ebb

Browse files
Add actions
1 parent e4dde55 commit d119ebb

2 files changed

Lines changed: 71 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: macos-15
16+
env:
17+
ADAENGINE_SKIP_WEBGPU_PLUGINS: "1"
18+
steps:
19+
- name: Checkout AdaMCP
20+
uses: actions/checkout@v4
21+
with:
22+
path: AdaMCP
23+
24+
- name: Checkout AdaEngine
25+
uses: actions/checkout@v4
26+
with:
27+
repository: AdaEngine/AdaEngine
28+
path: AdaEngine
29+
30+
- name: Setup Swift
31+
uses: swift-actions/setup-swift@v2
32+
with:
33+
swift-version: "6.2"
34+
35+
- name: Swift Version
36+
run: swift --version
37+
38+
- name: Resolve Packages
39+
working-directory: AdaMCP
40+
run: swift package resolve
41+
42+
- name: Run Tests
43+
working-directory: AdaMCP
44+
run: swift test --parallel
45+
46+
build-release:
47+
name: Build Release
48+
runs-on: macos-15
49+
env:
50+
ADAENGINE_SKIP_WEBGPU_PLUGINS: "1"
51+
steps:
52+
- name: Checkout AdaMCP
53+
uses: actions/checkout@v4
54+
with:
55+
path: AdaMCP
56+
57+
- name: Checkout AdaEngine
58+
uses: actions/checkout@v4
59+
with:
60+
repository: AdaEngine/AdaEngine
61+
path: AdaEngine
62+
63+
- name: Setup Swift
64+
uses: swift-actions/setup-swift@v2
65+
with:
66+
swift-version: "6.2"
67+
68+
- name: Build Release
69+
working-directory: AdaMCP
70+
run: swift build -c release

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Until the package is published, add it as a local SwiftPM dependency:
3333

3434
```swift
3535
dependencies: [
36-
.package(path: "../AdaMCP")
36+
.package(url: "https://github.com/AdaEngine/AdaMCP", branch: "main")
3737
]
3838
```
3939

@@ -89,5 +89,3 @@ External callers should target nodes by `accessibilityIdentifier`. `runtimeId` i
8989
- [DocC landing page](./Sources/AdaMCPCore/AdaMCPCore.docc/AdaMCPCore.md)
9090
- [Getting Started With AdaMCP](./Sources/AdaMCPCore/AdaMCPCore.docc/Getting-Started-With-AdaMCP.md)
9191
- [AdaUI Inspection and Automation](./Sources/AdaMCPCore/AdaMCPCore.docc/AdaUI-Inspection-and-Automation.md)
92-
93-
Swift Package Index configuration lives in [`./.spi.yml`](./.spi.yml).

0 commit comments

Comments
 (0)