Update gradle.yml #45
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Build Pojlib | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: [ "master", "QuestCraft" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: fatjyc/[email protected] | |
with: | |
# The GitHub API user | |
user: thewiilover | |
# The GitHub API token to use | |
token: ${{ secrets.PERSONAL_TOKEN }} | |
# The Remote Repo | |
repo: Wrapper-IL2CPP | |
# The Remote Repo Owner | |
repo_owner: thewiilover | |
# Commitor Username | |
committor_username: thewiilover | |
# Commitor Email | |
committor_email: [email protected] | |
# Submodule path | |
path: wrapper | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r21d | |
local-cache: true | |
link-to-sdk: true | |
- uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r26b | |
local-cache: true | |
link-to-sdk: true | |
- name: Make Gradle wrapper executable and pull LFS | |
run: git lfs pull | chmod +x ./gradlew | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
- name: Upload APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-debug | |
path: launcher/build/outputs/apk/* |