main #25
@ -3,12 +3,11 @@ run-name: ${{ gitea.actor }} is building an Android application
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- pipeline-test
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
42
.gitea/workflows/debug.yaml
Normal file
42
.gitea/workflows/debug.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
name: Gitea Android Builder
|
||||
run-name: ${{ gitea.actor }} is building an Android application
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up JDK 23
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '23'
|
||||
distribution: 'temurin'
|
||||
- name: Set up Android SDK
|
||||
uses: android-actions/setup-android@v3
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Cache Gradle packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
- name: Build with Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: assembleDebug
|
||||
- name: Upload .apk Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: android-app-apk
|
||||
path: app/build/outputs/apk/debug/*.apk
|
||||
- name: Status
|
||||
run: echo "This job's status is ${{ job.status }}."
|
Loading…
x
Reference in New Issue
Block a user