Skip to content

Commit

Permalink
ci: Add caching for Cargo dependencies and Dioxus CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 10, 2024
1 parent 9f6e6b8 commit 81d8809
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dioxus-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ jobs:

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Cache Dioxus CLI
uses: actions/cache@v3
with:
path: ~/.cargo/bin/dx
key: ${{ runner.os }}-dioxus-cli

- name: Install Dioxus CLI
run: cargo install dioxus-cli
Expand Down

0 comments on commit 81d8809

Please sign in to comment.