Skip to content

Commit

Permalink
Optimize workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
quoc-huynh-cosee committed Nov 14, 2024
1 parent 2d3a3d7 commit 959a652
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ jobs:

- name: Cache asdf
uses: actions/cache@v4
id: asdf_cache
with:
path: ~/.asdf/
key: ${{ runner.os }}-${{ hashFiles('**/.tool-versions') }}
- uses: asdf-vm/actions/install@v3
key: ${{ runner.os }}-${{ hashFiles('.tool-versions') }}
- name: Install asdf
uses: asdf-vm/actions/install@v3
# See https://github.com/asdf-vm/actions/issues/445
if: steps.cache-asdf.outputs.cache-hit != 'true'

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

0 comments on commit 959a652

Please sign in to comment.