From 75ac5c4d00340e589172e971f68245993a98a131 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Wed, 4 Aug 2021 23:17:43 -0700 Subject: [PATCH] fix CI, cache dependencies --- .github/workflows/build.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 62c8235..c97fd4b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,7 +11,6 @@ jobs: # This job will run on ubuntu virtual machine runs-on: ubuntu-latest steps: - # # Setup Java environment in order to build the Android app. # - uses: actions/checkout@v1 # - uses: actions/setup-java@v1 @@ -21,6 +20,14 @@ jobs: # Setup the flutter environment. - uses: subosito/flutter-action@v1 + - uses: actions/checkout@v2 + + - name: Cache Flutter dependencies + uses: actions/cache@v1 + with: + path: /opt/hostedtoolcache/flutter + key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} + # Get flutter dependencies. - run: flutter pub get