forked from jarnedemeulemeester/libmpv-android
-
Notifications
You must be signed in to change notification settings - Fork 12
69 lines (65 loc) · 1.75 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
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
name: Build libmpv-android
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
env:
NDK_VER: 25.1.8937393
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: temurin
java-version: 11
- name: Setup Flutter SDK
uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Gradle Build Action
uses: gradle/[email protected]
- name: Cache
uses: actions/[email protected]
with:
path: /usr/local/lib/android/sdk/ndk/${{ env.NDK_VER }}
key: ${{ runner.os }}-${{ env.NDK_VER }}
- name: Symlink SDK
working-directory: ./buildscripts
run: |
mkdir sdk
ln -s ${ANDROID_HOME} ./sdk/android-sdk-linux
- name: Bundle (default)
working-directory: ./buildscripts
run: |
sudo chmod +x bundle_default.sh
./bundle_default.sh
- name: Bundle (full)
working-directory: ./buildscripts
run: |
sudo chmod +x bundle_full.sh
./bundle_full.sh
- name: Bundle (encoders-gpl)
working-directory: ./buildscripts
run: |
sudo chmod +x bundle_encoders-gpl.sh
./bundle_encoders-gpl.sh
- uses: actions/[email protected]
with:
name: artifact
path: ./output/*
- uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/main'
with:
draft: true
prerelease: false
tag_name: "vnext"
files: |
output/*