Skip to content

trying to restore ruby on android #1386

trying to restore ruby on android

trying to restore ruby on android #1386

Workflow file for this run

name: Build
on: [push, pull_request]
env:
BUILD_TYPE: MinSizeRel
jobs:
# === Android ===
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r21e
add-to-path: false
local-cache: true
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Build
run: |
cd build/android
chmod +x gradlew
./gradlew assembleRelease
cp app/build/outputs/apk/release/app-release.apk tic80.apk
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Deploy
uses: actions/upload-artifact@v3
with:
name: "tic80-android"
path: build/android/tic80.apk