Skip to content

Commit

Permalink
Add sccache to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
coderofstuff committed Dec 18, 2023
1 parent 50d5233 commit dfbb3b3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand Down Expand Up @@ -82,6 +85,10 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Run sccache-cache
uses: mozilla-actions/[email protected]


- name: Fix CRLF on Windows
if: runner.os == 'Windows'
run: git config --global core.autocrlf false
Expand Down Expand Up @@ -112,6 +119,9 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run cargo build with devnet-prealloc feature
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: cargo build --release --features devnet-prealloc --workspace --all --tests --benches

- name: Run cargo test regular features
Expand Down Expand Up @@ -182,6 +192,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand Down

0 comments on commit dfbb3b3

Please sign in to comment.