This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user