Skip to content

Commit

Permalink
Merge pull request #31 from kuhnroyal/feature/cache-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhnroyal authored Aug 26, 2024
2 parents d10bec6 + 2297f42 commit 4155f8c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,9 @@ The configuration will parse the FVM configuration and use subosito/flutter-acti
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
```
```
### Caching
This action supports all cache inputs from the [subosito/flutter-action](https://github.com/subosito/flutter-action):
See https://github.com/subosito/flutter-action#caching for more information.
22 changes: 21 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ inputs:
description: 'Cache Flutter via "subosito/flutter-action"? (default: true - if setup is true)'
required: false
default: 'true'
cache-key:
description: 'Identifier for the Flutter SDK cache'
required: false
default: ''
cache-path:
description: 'Flutter SDK cache path'
required: false
default: ''
pub-cache-key:
description: 'Identifier for the Dart .pub-cache cache'
required: false
default: ''
pub-cache-path:
description: 'Flutter pub cache path'
required: false
default: default
outputs:
FLUTTER_VERSION:
description: 'The version of Flutter specified in the fvm configuration file'
Expand All @@ -37,9 +53,13 @@ runs:
uses: subosito/flutter-action@v2
if: inputs.setup == 'true'
with:
cache: ${{ inputs.cache }}
flutter-version: ${{ steps.config.outputs.FLUTTER_VERSION }}
channel: ${{ steps.config.outputs.FLUTTER_CHANNEL }}
cache: ${{ inputs.cache }}
cache-key: ${{ inputs.cache-key }}
cache-path: ${{ inputs.cache-path }}
pub-cache-key: ${{ inputs.pub-cache-key }}
pub-cache-path: ${{ inputs.pub-cache-path }}
branding:
icon: 'maximize'
color: 'blue'

0 comments on commit 4155f8c

Please sign in to comment.