fix CI, cache dependencies

This commit is contained in:
David Zhao
2021-08-04 23:17:43 -07:00
parent 0edcc3a714
commit 75ac5c4d00
+8 -1
View File
@@ -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