Skip to content

Commit

Permalink
Kvg dep cache (#38)
Browse files Browse the repository at this point in the history
* Cache Rust dependencies for faster builds
  • Loading branch information
kvg authored Oct 19, 2024
1 parent 4b7b8c4 commit 88bd8b8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ jobs:
run: git config --global --add safe.directory /__w/hidive/hidive
- uses: 'actions/checkout@v3'

- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -51,7 +60,7 @@ jobs:
run: gcloud auth configure-docker us.gcr.io -q

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./docker
push: true
Expand Down

0 comments on commit 88bd8b8

Please sign in to comment.