-
Notifications
You must be signed in to change notification settings - Fork 27
40 lines (38 loc) · 1 KB
/
build.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
name: Build libmpv-android
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Symlink SDK
working-directory: ./buildscripts
run: |
mkdir sdk
ln -s ${ANDROID_HOME} ./sdk/android-sdk-linux
- name: Download dependencies
working-directory: ./buildscripts
run: ./download.sh
- name: Apply patches
working-directory: ./buildscripts
run: ./patch.sh
- name: Build
working-directory: ./buildscripts
run: ./build.sh
- uses: actions/upload-artifact@v4
with:
name: libmpv-release.aar
path: ./libmpv/build/outputs/aar/libmpv-release.aar