Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread authored Dec 1, 2023
1 parent 9d04e86 commit db66a52
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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: mpv libappindicator3-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: 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

0 comments on commit db66a52

Please sign in to comment.