forked from mpv-android/mpv-android
-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (39 loc) · 1006 Bytes
/
build.yml
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
name: CI
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
architecture: [armv7l, arm64, x86, x86_64]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: temurin
- uses: actions/cache@v4
with:
path: gh-cache/
key: "prefix-${{ hashFiles('buildscripts/**.sh') }}"
restore-keys: "prefix-"
enableCrossOsArchive: true
- name: Build the release artifacts
run: |
set -x
unset ANDROID_SDK_ROOT
cd buildscripts
./download.sh > /dev/null
./buildall.sh --arch ${{ matrix.architecture }} mpv
./buildall.sh -n
- uses: actions/upload-artifact@v4
with:
name: aniyomi-mpv-lib-${{ matrix.architecture }}
path: app/build/outputs/aar/app-default-release.aar