anyway/.gitea/workflows/build-android.yaml
Remy Moll 19d1192ead
Some checks failed
Test, Build and Release web / Build Web (push) Failing after 13m55s
Test, Build and Release apk / Build APK (push) Failing after 13m35s
doctor taking so looong
2024-05-02 19:01:35 +02:00

37 lines
1.0 KiB
YAML

on: push
name: Test, Build and Release apk
jobs:
build:
name: Build APK
runs-on: k8s
steps:
- name: Install prerequisites
run: |
sudo apt-get update
sudo apt-get install -y xz-utils
- uses: actions/checkout@v4
- uses: https://github.com/actions/setup-java@v4
with:
java-version: '21'
distribution: 'oracle'
- uses: https://github.com/subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.19.0
cache: true
- run: flutter config --no-cli-animations
- run: flutter pub get -v
# - run: flutter test
- run: flutter build apk --debug --split-per-abi
# - name: setup go # gitea release action requires go
# uses: https://github.com/actions/setup-go@v4
# with:
# go-version: '>=1.20.1'
# - name: Push APK to Releases
# uses: https://gitea.com/actions/release-action@main
# with:
# files: |-
# build/app/outputs/**.apk
# api_key: '${{secrets.RELEASE_TOKEN}}'