Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-3870: [Rust][Build] Speed up CI for Rust #2517

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/test-lang-rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ permissions:

env:
RUSTFLAGS: -Dwarnings
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: 'git' # TODO: remove this env var once MSRV is 1.70.0+

defaults:
run:
Expand Down Expand Up @@ -64,14 +65,14 @@ jobs:
# these represent dependencies downloaded by cargo
# and thus do not depend on the OS, arch nor rust version.
path: ~/.cargo
martin-g marked this conversation as resolved.
Show resolved Hide resolved
key: cargo-cache1-
key: ${{ runner.os }}-target-cache1-${{ hashFiles('**/Cargo.lock') }}
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
# these represent compiled steps of both dependencies and avro
# and thus are specific for a particular OS, arch and rust version.
path: ~/target
key: ${{ runner.os }}-target-cache1-${{ matrix.rust }}-
path: lang/rust/target
martin-g marked this conversation as resolved.
Show resolved Hide resolved
key: ${{ runner.os }}-target-cache1-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}

- name: Rust Toolchain
uses: dtolnay/rust-toolchain@nightly
Expand Down Expand Up @@ -134,14 +135,14 @@ jobs:
# these represent dependencies downloaded by cargo
# and thus do not depend on the OS, arch nor rust version.
path: ~/.cargo
key: cargo-cache1-
key: ${{ runner.os }}-target-cache1-${{ hashFiles('**/Cargo.lock') }}
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
# these represent compiled steps of both dependencies and avro
# and thus are specific for a particular OS, arch and rust version.
path: ~/target
key: ${{ runner.os }}-target-cache1-stable-
path: lang/rust/target
key: ${{ runner.os }}-target-cache1-stable-${{ hashFiles('**/Cargo.lock') }}

- name: Cache Local Maven Repository
uses: actions/cache@v3
Expand Down Expand Up @@ -219,15 +220,15 @@ jobs:
# these represent dependencies downloaded by cargo
# and thus do not depend on the OS, arch nor rust version.
path: ~/.cargo
key: cargo-cache1-
key: ${{ runner.os }}-target-cache1-${{ hashFiles('**/Cargo.lock') }}

- name: Cache Rust dependencies
uses: actions/cache@v3
with:
# these represent compiled steps of both dependencies and avro
# and thus are specific for a particular OS, arch and rust version.
path: ~/target
key: ${{ runner.os }}-target-cache1-stable-
path: lang/rust/target
key: ${{ runner.os }}-target-cache1-stable-${{ hashFiles('**/Cargo.lock') }}

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Expand Down