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
+10
View File
@@ -9,6 +9,16 @@ An Android TN3270 terminal emulator based on `lib3270j` / `j3270`, built with Je
`a3270` relies on the shared 3270 protocol library (`lib3270j`) provided by the `j3270` repository. `a3270` relies on the shared 3270 protocol library (`lib3270j`) provided by the `j3270` repository.
## CI/CD & Automated Builds
Automated CI/CD is configured using Gitea Actions (`.gitea/workflows/build.yml`). On every push to `main` or pull request, the workflow automatically:
1. Clones `a3270` and `j3270` (`lib3270j`).
2. Configures JDK 21 and the Android SDK.
3. Builds the debug APK (`a3270-debug.apk`).
4. Uploads the resulting APK as a downloadable workflow artifact (`a3270-debug`).
You can download pre-built APKs directly from the **Actions** tab of the repository on Gitea.
## Prerequisites ## Prerequisites
- **Java Development Kit (JDK)**: JDK 17 or JDK 21 - **Java Development Kit (JDK)**: JDK 17 or JDK 21