-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
50 lines (50 loc) · 1.39 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'Setup Flutter version'
description: 'Setup Flutter version specified in pubspec.yaml, also install Java and Android SDK'
branding:
icon: "download"
color: blue
inputs:
pubspec-file:
description: 'pubspec.yaml location. default:pubspec.yaml'
required: false
default: pubspec.yaml
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
name: Checkout
- name: Get version
id: flutter-version
uses: jbutcher5/[email protected]
with:
file: './${{ inputs.pubspec-file }}'
key-path: '["environment","flutter"]'
- name: Setup Flutter
uses: subosito/[email protected]
with:
flutter-version: ${{ steps.flutter-version.outputs.data }}
cache: true
- name: Flutter config
shell: bash
run: flutter config --no-analytics; flutter config --no-cli-animations
- name: Flutter version
shell: bash
run: flutter --version
- name: Clean
shell: bash
run: flutter clean
- name: Install dependencies
shell: bash
run: flutter pub get
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Setup Android SDK
uses: amyu/setup-android@v4
with:
sdk-version: "33"
build-tools-version: "34.0.0"
cache-disabled: true
generate-job-summary: false