Skip to content

Commit 6861301

Browse files
authored
Pin the SDK git ref and add caching on github actions (#205)
1 parent 6b84c96 commit 6861301

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/dart_mcp_server.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ jobs:
3535
- windows-latest
3636
steps:
3737
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
38+
- name: Cache Pub hosted dependencies
39+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf
40+
with:
41+
path: "~/.pub-cache/hosted"
42+
key: "pub-cache-hosted;${{ matrix.flutterSdk }};${{ matrix.os }}"
43+
- name: Cache Pub sdk git dependency
44+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf
45+
with:
46+
path: "~/.pub-cache/git/sdk-b0838eac58308fc4e6654ca99eda75b30649c08f/"
47+
key: "pub-cache-git;${{ matrix.flutterSdk }};${{ matrix.os }}"
3848
# We need the flutter SDK in order to run the counter app for integration
3949
# testing.
4050
- uses: subosito/flutter-action@v2

pkgs/dart_mcp_server/pubspec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ dependencies:
2525
git:
2626
url: https://github.com/dart-lang/sdk.git
2727
path: third_party/pkg/language_server_protocol
28+
# When changing this, also update .github/workflows/dart_mcp_server.yaml
29+
# to cache the correct directory.
30+
ref: b0838eac58308fc4e6654ca99eda75b30649c08f
2831
meta: ^1.16.0
2932
path: ^1.9.1
3033
pool: ^1.5.1

0 commit comments

Comments
 (0)