Browse Source

Use `sscache` instead of `rust-cache` for caching on CI

sccache
Philipp Oppermann 2 years ago
parent
commit
d0c5c1468a
Failed to extract signature
2 changed files with 35 additions and 7 deletions
  1. +5
    -1
      .github/workflows/ci-python.yml
  2. +30
    -6
      .github/workflows/ci.yml

+ 5
- 1
.github/workflows/ci-python.yml View File

@@ -22,7 +22,11 @@ jobs:

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: "Python Dataflow example"
run: cargo run --example python-dataflow


+ 30
- 6
.github/workflows/ci.yml View File

@@ -18,7 +18,11 @@ jobs:
- uses: actions/checkout@v3
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: "Check"
run: cargo check --all
@@ -39,7 +43,11 @@ jobs:

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: "Build examples"
timeout-minutes: 30
@@ -72,7 +80,11 @@ jobs:

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: "Build cli and binaries"
timeout-minutes: 30
@@ -104,7 +116,11 @@ jobs:

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: "Remote Rust Dataflow example"
if: false # skip this example for now until we uploaded new test nodes
@@ -119,7 +135,11 @@ jobs:

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: "Clippy"
run: cargo clippy --all
@@ -147,7 +167,11 @@ jobs:

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- run: cargo install cargo-lichking
- name: "Check dependency licenses"


Loading…
Cancel
Save