Skip to content

Commit

Permalink
ci: add scache for rust builds
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 7, 2023
1 parent e0a0753 commit 2b3b7cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/rust/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ runs:
echo "PROTOC=${HOME}/.local/bin/protoc" >> $GITHUB_ENV
export PATH="${PATH}:${HOME}/.local/bin"
# - name: Run sccache-cache
# uses: mozilla-actions/[email protected]
# with:
# version: "v0.7.0"
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
version: "v0.7.0"

- name: Hash ref_name
id: hashed-ref-name
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/tests-rs-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
- uses: clechasseur/rs-clippy-check@v3
with:
args: --package ${{ inputs.package }} --all-features --frozen -- --no-deps
env:
RUSTC_WRAPPER: sccache
SCCACHE_BUCKET: multi-runner-linux-x64-platform-cache-ui535z23
SCCACHE_REGION: ${{ vars.AWS_REGION }}
SCCACHE_S3_KEY_PREFIX: ${{ runner.os }}/sccache/x86_64-unknown-linux-gnu/

formatting:
name: Formatting
Expand Down Expand Up @@ -120,3 +125,8 @@ jobs:

- name: Run tests
run: cargo test --package=${{ inputs.package }} --all-features --frozen
env:
RUSTC_WRAPPER: sccache
SCCACHE_BUCKET: multi-runner-linux-x64-platform-cache-ui535z23
SCCACHE_REGION: ${{ vars.AWS_REGION }}
SCCACHE_S3_KEY_PREFIX: ${{ runner.os }}/sccache/x86_64-unknown-linux-gnu/

0 comments on commit 2b3b7cb

Please sign in to comment.