Merge pull request #6 from joelgomes1994/fix-crash-null-uri #19
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
name: Build library artifact | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ 'main' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permissions for gradlew | |
run: chmod +x gradlew | |
- name: Cache gradle dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Download and rename Godot library package | |
run: | | |
wget https://github.com/godotengine/godot/releases/download/3.5.3-stable/godot-lib.3.5.3.stable.release.aar -O godot-lib.release.aar | |
- name: Move Godot library package to the appropriate folder | |
run: mv godot-lib.release.aar godot-lib.release/ | |
- name: Build artifact | |
run: ./gradlew :app:assembleRelease | |
- name: Upload library package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Library package | |
path: app/build/outputs/aar/GodotGooglePlayGameServices.release.aar |