Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/preload-caches-flutter.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down