All checks were successful
Build / build (pull_request) Successful in 9m31s
This commit updates the CI build and release workflows to enable Gradle caching. This change adds `cache: gradle` to the Java setup action. These changes apply to both `build.yaml` and `release.yaml` files.
36 lines
751 B
YAML
36 lines
751 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
cache: gradle
|
|
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew composeApp:buildDebug --no-daemon
|
|
|
|
- name: Gradle Release
|
|
run: ./gradlew composeApp:debug --no-daemon
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app
|
|
path: composeApp/build/outputs/apk/debug/*.apk
|