forked from abdallahmehiz/mpv-android
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.48 KB
/
Copy pathbuild.yml
File metadata and controls
59 lines (50 loc) · 1.48 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build
on:
- pull_request
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
architecture: [ armv7l, arm64, x86, x86_64 ]
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: '17'
distribution: temurin
- name: Export env vars
run: buildscripts/include/ci.sh export >>$GITHUB_ENV
- uses: actions/cache@v5
with:
path: gh-cache/
key: "prefix-${{ hashFiles('buildscripts/**.sh') }}"
restore-keys: "prefix-"
enableCrossOsArchive: true
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install autoconf pkgconf libtool ninja-build python3-pip gperf
sudo pip3 install meson
- name: Download deps
run: |
mkdir -p "$CACHE_FOLDER"
buildscripts/include/ci.sh install
env:
CACHE_MODE: "folder"
CACHE_FOLDER: "${{ github.workspace }}/gh-cache"
- 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@v7
with:
name: mpv-lib-${{ matrix.architecture }}
path: lib/build/outputs/aar/app-release.aar