Skip to content

Commit

Permalink
Flutter action caching/2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadrian committed Jan 2, 2025
1 parent 152e539 commit 34412b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build docker images
env:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,16 @@ jobs:
channel: stable
# flutter-version: 3.27.0
cache: true
# optional parameters follow
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies
pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path

- run: flutter --version
- run: flutter --disable-analytics
- name: Install Ubuntu Dependencies
run: sudo apt-get install -y lcov sqlite3 libsqlite3-dev libsecret-1-0 libsecret-1-dev
run: sudo apt-get install --no-install-recommends -y lcov sqlite3 libsqlite3-dev libsecret-1-0 libsecret-1-dev

- name: Prepare environment.
run: flutter pub get
Expand Down

0 comments on commit 34412b7

Please sign in to comment.