diff --git a/.github/workflows/preload-caches-flutter.yml b/.github/workflows/preload-caches-flutter.yml new file mode 100644 index 0000000..8dd2cf0 --- /dev/null +++ b/.github/workflows/preload-caches-flutter.yml @@ -0,0 +1,20 @@ +name: preload caches / flutter + +on: + workflow_call: + +jobs: + cache_flutter: + name: cache flutter / pinned + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + - name: Set up Flutter + uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e + with: + channel: stable + flutter-version-file: pubspec.yaml + cache: true + - name: Install dependencies + run: flutter pub get --enforce-lockfile diff --git a/README.md b/README.md index edf8136..19b92e0 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ You'll find the following reusable workflows under the - [draft-release-rust.yml](#draft-release-rustyml) - [label-pull-request.yml](#label-pull-requestyml) - [preload-caches-actionlint.yml](#preload-caches-actionlintyml) +- [preload-caches-flutter.yml](#preload-caches-flutteryml) - [preload-caches-rust.yml](#preload-caches-rustyml) - [publish-crate.yml](#publish-crateyml) - [ready-to-merge.yml](#ready-to-mergeyml) @@ -300,6 +301,13 @@ the [actionlint action][]. --- +### preload-caches-flutter.yml + +Saves the repository's Flutter project dependencies for the pinned toolchain +into the [GitHub Actions cache][], using [flutter-action][]. + +--- + ### preload-caches-rust.yml Saves the repository's Rust project dependencies for both the _stable_ and @@ -428,6 +436,7 @@ Copyright © 2023 [Aaron Bull Schaefer][EMAIL] and contributors [secrets]: https://docs.github.com/en/actions/security-guides/encrypted-secrets [expression]: https://docs.github.com/en/actions/learn-github-actions/expressions +[flutter-action]: https://github.com/subosito/flutter-action [GitHub Actions cache]: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows [GitHub Pages]: https://docs.github.com/pages