Skip to content

Commit

Permalink
chore: Use cached target directory (#2742)
Browse files Browse the repository at this point in the history
#2596, in copying over the build steps from `publish`, added a `cargo clean` step which deletes the target dir that we cache in a prior step. Build times have suffered since, especially wrt the built assets. This restores the cached build artifacts.
  • Loading branch information
adamspofford-dfinity authored Nov 9, 2022
1 parent 6093cf0 commit 1f5823b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.rust }}-1
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.rust }}-1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -59,7 +59,6 @@ jobs:
if: contains(matrix.os, 'macos')
- name: Build
run: |
cargo clean --target ${{ matrix.target }} --release
cargo build --target ${{ matrix.target }} --locked --release
- name: Strip binaries
run: |
Expand Down

0 comments on commit 1f5823b

Please sign in to comment.