-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.59 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
on:
push:
branches: [ "main", "actions-test" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# - name: Install mpv
# run: sudo apt-get install -y mpv
# - name: Install libappindicator3 and dependencies
# run: sudo apt-get install -y libappindicator3-dev libglib2.0-dev
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libmpv-dev libzmq5 libappindicator3-dev libcurl4-openssl-dev
version: 1.0
# TODO
# https://github.com/awalsh128/cache-apt-pkgs-action
# Use pkg-config
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: TEST 1
run: ./gradlew generateCInteropDefinitions
- name: TEST 2
run: ls src/nativeInterop/cinterop ; cat src/nativeInterop/cinterop/libzmq.def
- name: Build native binaries
run: ./gradlew nativeBinaries
- name: TEST
run: ls build/bin/native/ ; ls build/bin/native/debugExecutable/ ; ls build/bin/native/nativeExecutable/
# - name: Upload universal debug APK artifact
# uses: actions/upload-artifact@v3
# with:
# name: androidApp-debug.apk
# path: androidApp/build/outputs/apk/debug/androidApp-debug.apk
# - name: Upload universal release APK artifact
# uses: actions/upload-artifact@v3
# with:
# name: androidApp-release.apk
# path: androidApp/build/outputs/apk/release/androidApp-release.apk