This repository has been archived by the owner on Jan 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d04e86
commit db66a52
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |