Skip to content

Commit

Permalink
Cache asdf in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
quoc-huynh-cosee committed Nov 21, 2023
1 parent b4dcee9 commit 0bc089e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Cache asdf
uses: actions/cache@v3
id: asdf_cache
with:
path: ~/.asdf/
key: ${{ runner.os }}-${{ hashFiles('**/.tool-versions') }}
- uses: asdf-vm/actions/install@v3

- name: Cache dependencies
- name: Cache flutter dependencies
uses: actions/cache@v3
id: cache
id: flutter_cache
with:
path: |
.dart_tool/
key: ${{ runner.os }}-dependencies-${{ hashFiles('**/pubspec.lock') }}
path: .dart_tool/
key: ${{ runner.os }}-${{ hashFiles('**/pubspec.lock') }}
- name: Install Dependencies
run: |
flutter pub get
Expand Down

0 comments on commit 0bc089e

Please sign in to comment.