-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
22 lines (22 loc) · 667 Bytes
/
action.yml
File metadata and controls
22 lines (22 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: "Flutter SDK"
author: Sebastian Messingfeld
description: "Installs Flutter SDK"
branding:
icon: 'check-circle'
color: 'orange'
inputs:
flutter-sdk-version:
description: "The Flutter SDK Version"
required: false
default: "stable"
runs:
using: "composite"
steps:
- run: |
echo "Installing Flutter SDK ${{ inputs.flutter-sdk-version }}"
git clone https://github.com/flutter/flutter.git --depth 1 --branch ${{ inputs.flutter-sdk-version }} "$HOME/.flutter"
echo "$HOME/.flutter/bin" >> $GITHUB_PATH
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
shell: bash
- run: flutter precache
shell: bash