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
|
2022-04-19 11:08:46 +02:00
|
|
|
default: 'any'
|
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
|
2022-08-25 12:24:16 +02:00
|
|
|
default: false
|
2022-01-08 15:55:41 +01:00
|
|
|
cache-key:
|
|
|
|
description: 'Identifier for the Flutter SDK cache'
|
|
|
|
required: false
|
2022-07-26 07:08:35 +02:00
|
|
|
default: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
|
2022-01-13 11:10:55 +01:00
|
|
|
cache-path:
|
|
|
|
description: 'Flutter SDK cache path'
|
|
|
|
required: false
|
2022-07-26 07:08:35 +02:00
|
|
|
default: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
|
2022-04-19 11:08:46 +02:00
|
|
|
architecture:
|
|
|
|
description: 'The architecture of Flutter SDK executable (x64 or arm64)'
|
|
|
|
required: false
|
2022-09-07 19:15:50 +02:00
|
|
|
default: '${{ runner.arch }}'
|
2022-09-08 03:41:22 +02:00
|
|
|
outputs:
|
|
|
|
cache-path:
|
|
|
|
value: '${{ steps.flutter-action.outputs.cache-path }}'
|
|
|
|
cache-key:
|
|
|
|
value: '${{ steps.flutter-action.outputs.cache-key }}'
|
|
|
|
channel:
|
|
|
|
value: '${{ steps.flutter-action.outputs.channel }}'
|
|
|
|
version:
|
|
|
|
value: '${{ steps.flutter-action.outputs.version }}'
|
|
|
|
architecture:
|
|
|
|
value: '${{ steps.flutter-action.outputs.architecture }}'
|
2019-08-13 12:11:30 +02:00
|
|
|
runs:
|
2022-01-06 08:40:25 +01:00
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2022-09-07 19:15:50 +02:00
|
|
|
- id: flutter-action
|
2022-09-17 02:11:03 +02:00
|
|
|
run: $GITHUB_ACTION_PATH/setup.sh -p -c '${{ inputs.cache-path }}' -k '${{ inputs.cache-key }}' -n '${{ inputs.flutter-version }}' -a '${{ inputs.architecture }}' ${{ inputs.channel }}
|
2022-07-24 14:19:31 +02:00
|
|
|
shell: bash
|
2022-01-08 15:55:41 +01:00
|
|
|
- if: ${{ inputs.cache == 'true' }}
|
2022-04-27 05:24:59 +02:00
|
|
|
uses: actions/cache@v3
|
2022-01-08 15:55:41 +01:00
|
|
|
with:
|
2022-09-07 19:15:50 +02:00
|
|
|
path: ${{ steps.flutter-action.outputs.cache-path }}
|
|
|
|
key: ${{ steps.flutter-action.outputs.cache-key }}
|
|
|
|
- run: $GITHUB_ACTION_PATH/setup.sh -c '${{ steps.flutter-action.outputs.cache-path }}' -n '${{ steps.flutter-action.outputs.version }}' -a '${{ steps.flutter-action.outputs.architecture }}' ${{ steps.flutter-action.outputs.channel }}
|
2022-01-06 08:40:25 +01:00
|
|
|
shell: bash
|