Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Commit c61f95b

Browse files
committed
[ci] 加入 TouchController 的 GitHub Actions 构建文件
1 parent e4f160e commit c61f95b

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build TouchController
2+
on: [ pull_request, push ]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
game-version: [ "1.21.11", "26.1" ]
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Set up JDK 21
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '21'
19+
distribution: 'temurin'
20+
- name: Setup Android SDK
21+
uses: android-actions/setup-android@v3
22+
- uses: nttld/setup-ndk@v1
23+
id: setup-ndk
24+
with:
25+
ndk-version: r28b
26+
- name: Setup Bazel
27+
uses: bazel-contrib/setup-bazel@0.14.0
28+
- name: Build
29+
run: bazel build --verbose_failures --config=opt //touchcontroller/versions/${{ matrix.game-version }}/fabric
30+
- name: Upload artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: artifacts-bazel
34+
path: bazel-bin/touchcontroller/versions/${{ matrix.game-version }}/fabric/fabric.jar

0 commit comments

Comments
 (0)