1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00
flutter/action.yml

36 lines
1 KiB
YAML
Raw Normal View History

2019-08-16 14:33:37 +02:00
name: 'Flutter action'
2019-08-14 00:45:22 +02:00
description: 'Setup your runner with Flutter environment'
2019-08-13 12:11:30 +02:00
author: 'Alif Rachmawadi'
2022-01-06 08:40:25 +01:00
branding:
icon: 'maximize'
color: 'blue'
2019-08-13 12:11:30 +02:00
inputs:
2019-08-16 14:14:55 +02:00
flutter-version:
2019-08-13 12:11:30 +02:00
description: 'The Flutter version to make available on the path'
2019-08-16 13:30:45 +02:00
required: false
2019-08-13 12:11:30 +02:00
channel:
description: 'The Flutter build release channel'
required: false
default: 'stable'
2022-01-08 15:55:41 +01:00
cache:
description: 'Cache the Flutter SDK'
required: false
cache-key:
description: 'Identifier for the Flutter SDK cache'
required: false
default: 'flutter'
2022-01-13 11:10:55 +01:00
cache-path:
description: 'Flutter SDK cache path'
required: false
default: ${{ runner.tool_cache }}/flutter
2019-08-13 12:11:30 +02:00
runs:
2022-01-06 08:40:25 +01:00
using: 'composite'
steps:
2022-01-08 15:55:41 +01:00
- if: ${{ inputs.cache == 'true' }}
uses: actions/cache@v2
with:
2022-01-13 11:10:55 +01:00
path: ${{ inputs.cache-path }}
2022-01-08 15:55:41 +01:00
key: ${{ inputs.cache-key }}-${{ inputs.channel }}-${{ inputs.flutter-version }}
2022-01-13 11:10:55 +01:00
- run: $GITHUB_ACTION_PATH/setup.sh -c "${{ inputs.cache-path }}" ${{ inputs.channel }} ${{ inputs.flutter-version }}
2022-01-06 08:40:25 +01:00
shell: bash