Browse Source

Share CI cache across jobs per OS

better-caching
Philipp Oppermann 2 years ago
parent
commit
d67ec6ab7b
Failed to extract signature
2 changed files with 19 additions and 1 deletions
  1. +2
    -0
      .github/workflows/ci-python.yml
  2. +17
    -1
      .github/workflows/ci.yml

+ 2
- 0
.github/workflows/ci-python.yml View File

@@ -23,6 +23,8 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
with:
shared-key: "ubuntu-latest"

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


+ 17
- 1
.github/workflows/ci.yml View File

@@ -19,6 +19,8 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.platform }}

- name: "Check"
run: cargo check --all
@@ -40,6 +42,8 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.platform }}

- name: "Build examples"
timeout-minutes: 30
@@ -73,6 +77,8 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.platform }}

- name: "Build cli and binaries"
timeout-minutes: 30
@@ -98,13 +104,19 @@ jobs:

examples-remote:
name: "Examples (Remote)"
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.platform }}

- name: "Remote Rust Dataflow example"
if: false # skip this example for now until we uploaded new test nodes
@@ -120,6 +132,8 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
with:
shared-key: ubuntu-latest

- name: "Clippy"
run: cargo clippy --all
@@ -148,6 +162,8 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1.1.0
- run: cargo --version --verbose
- uses: Swatinem/rust-cache@v2
with:
shared-key: ubuntu-latest

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


Loading…
Cancel
Save