Add workflows
Build a3270 APK / Build Android APK (push) Failing after 46s

This commit is contained in:
2026-08-20 18:39:38 -04:00
parent b4a5dbbde1
commit 27bf1c835c
2 changed files with 57 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
name: Build a3270 APK
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
name: Build Android APK
runs-on: ubuntu-latest
steps:
- name: Checkout a3270
uses: actions/checkout@v4
- name: Checkout j3270 (for lib3270j)
uses: actions/checkout@v4
with:
repository: rudi/j3270
path: j3270
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Debug APK
run: ./gradlew assembleDebug --no-daemon
env:
J3270_DIR: ${{ github.workspace }}/j3270
- name: Upload APK Artifact
uses: actions/upload-artifact@v4
with:
name: a3270-debug
path: build/outputs/apk/debug/a3270-debug.apk
if-no-files-found: error