Skip to content

Commit

Permalink
put caching back
Browse files Browse the repository at this point in the history
  • Loading branch information
willemolding committed Jul 19, 2023
1 parent 1bbe97c commit 2da5549
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
branches:
- main
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
build-mips:
Expand All @@ -21,6 +24,11 @@ jobs:
uses: actions/checkout@v3
with:
lfs: true
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install development tools
uses: taiki-e/[email protected]
with:
Expand Down Expand Up @@ -52,6 +60,11 @@ jobs:
steps:
- name: Checkout Source
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup protoc
uses: arduino/[email protected]
- uses: actions-rs/cargo@v1
Expand All @@ -63,6 +76,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down

0 comments on commit 2da5549

Please sign in to comment.