Skip to content

Update build.yml

Update build.yml #19

Workflow file for this run

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 czmq 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