Skip to content

Commit

Permalink
Uncomment cache step in CD workflow for build efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
oleander committed Nov 16, 2024
1 parent 8fdfdc7 commit 160c26e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ jobs:
git config user.name "Linus Oleander"
git config user.email "[email protected]"
- name: Cache target and cargo build
uses: actions/cache@v4
with:
path: |
~/.rustup/toolchains/
target/
key: ${{ runner.os }}-rustup-cargo-${{ env.TARGET }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rustup-cargo-${{ env.TARGET }}-
# - name: Cache target and cargo build
# uses: actions/cache@v4
# with:
# path: |
# ~/.rustup/toolchains/
# target/
# key: ${{ runner.os }}-rustup-cargo-${{ env.TARGET }}-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-rustup-cargo-${{ env.TARGET }}-

- name: Setup Rust
uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit 160c26e

Please sign in to comment.