Skip to content

Commit

Permalink
ci: add GH caching (#1393)
Browse files Browse the repository at this point in the history
  • Loading branch information
penumbra23 authored Jan 23, 2025
1 parent 81fef9e commit d483311
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/pr-test-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure sccache env for Rust
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup Rust cache
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build dev containers
run: |
./scripts/build_docker.sh
Expand Down Expand Up @@ -53,3 +55,6 @@ jobs:
if: ${{ always() }}
run: |
docker compose --profile "*" down
- name: Cleanup working dir
if: ${{ always() }}
uses: eviden-actions/clean-self-hosted-runner@v1

0 comments on commit d483311

Please sign in to comment.