-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (35 loc) · 1.1 KB
/
touchcontroller.yml
File metadata and controls
36 lines (35 loc) · 1.1 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
name: Build TouchController
on: [ pull_request, push ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
game-version: [ "1.21.11", "26.1" ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r28b
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.14.0
- name: Build
run: bazel build --verbose_failures --config=opt //touchcontroller/versions/${{ matrix.game-version }}/fabric
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts-${{ matrix.os }}-${{ matrix.game-version }}
path: bazel-bin/touchcontroller/versions/${{ matrix.game-version }}/fabric/fabric.jar