From e75246a6bd09b28de6ba8dcc68973a5b5eed2282 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Thu, 20 Jul 2023 11:48:04 +0200 Subject: [PATCH] add cache --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89c8bdb7f..e7419235b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,23 @@ jobs: steps: - name: checkout uses: actions/checkout@v3 - + - name: Cache Flutter dependencies + uses: actions/cache@v2 + with: + path: | + ~/.pub-cache + key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }} + restore-keys: | + ${{ runner.os }}-pub-cache- + + - name: Cache Go dependencies + uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + key: ${{ runner.os }}-go-deps-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-deps- - name: Setup Flutter uses: subosito/flutter-action@v2 with: