forked from PojavLauncherTeam/lwjgl3
-
Notifications
You must be signed in to change notification settings - Fork 0
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
The Judge
committed
Nov 24, 2024
1 parent
adf02db
commit d35e069
Showing
1 changed file
with
40 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,40 @@ | ||
name: Android build | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
arch: [ "arm64" ] | ||
fail-fast: false | ||
|
||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 8 | ||
|
||
- name: Build for Android ${{matrix.arch}} | ||
run: | | ||
export JAVA8_HOME=$JAVA_HOME_8_${{runner.arch}} | ||
export LWJGL_BUILD_ARCH=${{matrix.arch}} | ||
bash ci_build_android.bash | ||
- name: Upload modules release output | ||
if: ${{matrix.arch == 'arm64'}} # Only upload this once | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: lwjgl3-android-modules | ||
path: bin/RELEASE | ||
|
||
- name: Upload native build output | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: lwjgl3-android-natives-${{matrix.arch}} | ||
path: bin/out |