Skip to content

Cache test

Cache test #6

Workflow file for this run

name: Android Flutter Build
on:
push:
branches:
- main
jobs:
build:
name: Build Android
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.5' # My current version of flutter
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
architecture: x64
- name: Get dependencies
run: flutter pub get
- name: Build APK
run: flutter build apk
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: app-release.apk
path: build/app/outputs/flutter-apk/app-release.apk