-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (51 loc) · 1.54 KB
/
Copy pathci.yml
File metadata and controls
63 lines (51 loc) · 1.54 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Set up Android SDK
uses: android-actions/setup-android@v3
with:
packages: 'platforms;android-36 build-tools;36.0.0'
- name: Replace android.jar with unstripped (Reginer/aosp-android-jar)
shell: pwsh
run: |
$api = 36
$dest = "$env:ANDROID_SDK_ROOT/platforms/android-$api/android.jar"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Reginer/aosp-android-jar/main/android-$api/android.jar" -OutFile $dest
Get-Item $dest
- name: Build agent
shell: cmd
run: agent\build.bat
- name: Verify formatting
run: dotnet format AndroidMcp.slnx --verify-no-changes --verbosity diagnostic
- name: Test
run: dotnet test AndroidMcp.slnx -c Release --nologo
- name: Publish
shell: cmd
run: publish.bat
- uses: actions/upload-artifact@v4
with:
name: android-mcp-win-x64-${{ github.sha }}
path: publish/win-x64/
retention-days: 7