forked from mpv-android/mpv-android
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.01 KB
/
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
name: build
on:
- push
- pull_request
jobs:
linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: temurin
- uses: actions/cache@v3
with:
path: gh-cache/
key: "prefix"
enableCrossOsArchive: true
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install autoconf pkg-config libtool ninja-build python3-pip
sudo pip3 install meson
- name: Download deps
run: |
mkdir -p "$CACHE_FOLDER"
buildscripts/.travis.sh install
env:
CACHE_MODE: "folder"
CACHE_FOLDER: "${{ github.workspace }}/gh-cache"
- name: Build
run: |
buildscripts/.travis.sh build
- uses: actions/upload-artifact@v3
with:
name: mpv-android
path: app/build/outputs/apk/default/debug/app-default-armeabi-v7a-debug.apk