-
Notifications
You must be signed in to change notification settings - Fork 20
84 lines (84 loc) · 2.85 KB
/
ci.yaml
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
78
79
80
81
82
83
84
name: ci
on:
push:
branches:
- main
pull_request:
workflow_dispatch: {} # support manual runs
permissions:
contents: read
jobs:
build-connect-library:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_14.1.app
- name: Build Connect library
run: make buildpackage
build-eliza-cocoapods-example:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_14.1.app
- name: Build Eliza CocoaPods example
run: |
cd Examples/ElizaCocoaPodsApp
pod install
xcodebuild -workspace ElizaCocoaPodsApp.xcworkspace -scheme ElizaCocoaPodsApp build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
build-eliza-swiftpm-example:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_14.1.app
- name: Build Eliza Swift PM example
run: |
cd Examples/ElizaSwiftPackageApp
xcodebuild -scheme ElizaSwiftPackageApp build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
build-plugin-and-generate:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected]
with:
github_token: ${{ github.token }}
- name: Build plugins
run: make buildplugins
- name: Generate outputs
run: make generate
- name: Ensure no generated diff
run: |
git update-index --refresh --add --remove
git diff-index --quiet HEAD --
run-connect-tests:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: docker-practice/actions-setup-docker@master
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_14.1.app
- name: Run tests
run: make test
run-swiftlint:
runs-on: ubuntu-latest
container:
image: ghcr.io/realm/swiftlint:0.50.3
steps:
- uses: actions/checkout@v4
- name: Run SwiftLint
run: swiftlint lint --strict
validate-license-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate license headers
run: |
make licenseheaders
git update-index --refresh
git diff-index --quiet HEAD --