mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- master
|
|
- extended
|
|
- stable
|
|
- '**-feature-**'
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'doc/**'
|
|
- 'fastlane/**'
|
|
- 'assets/**'
|
|
- '.github/**/*.md'
|
|
- '.github/FUNDING.yml'
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
push:
|
|
branches:
|
|
- dev
|
|
- master
|
|
- extended
|
|
- stable
|
|
- '**-feature-**'
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'doc/**'
|
|
- 'fastlane/**'
|
|
- 'assets/**'
|
|
- '.github/**/*.md'
|
|
- '.github/FUNDING.yml'
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions: write-all
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 21
|
|
distribution: "temurin"
|
|
cache: 'gradle'
|
|
|
|
- name: Build debug APK and run jvm tests
|
|
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
|
|
|
|
- name: Generate checksum
|
|
run: |
|
|
sha256sum app/build/outputs/apk/debug/*.apk > app/build/outputs/apk/debug/checksums.txt
|
|
echo "::notice::$(cat app/build/outputs/apk/debug/checksums.txt)"
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: app
|
|
path: app/build/outputs/apk/debug/*.apk
|