Skip to content

Commit 473361b

Browse files
committed
add rust cache
1 parent 41aaa3b commit 473361b

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/rust.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
android: true
2121
dotnet: true
2222
haskell: true
23-
large-packages: true
23+
large-packages: false
2424
docker-images: false
2525
swap-storage: false
2626
- uses: actions/checkout@v3
27+
- uses: Swatinem/rust-cache@v2
2728
- name: Build
28-
run: cargo build --verbose
29+
run: cargo build
2930
- name: Run iceberg-rust-spec tests
3031
run: make test-iceberg-rust-spec
3132
- name: Run iceberg-rust tests
@@ -43,6 +44,7 @@ jobs:
4344
runs-on: ubuntu-latest
4445
steps:
4546
- uses: actions/checkout@v3
47+
- uses: Swatinem/rust-cache@v2
4648
- name: Install Clippy
4749
run: rustup component add clippy
4850
- name: Run Clippy

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ test-iceberg-rust:
77
cargo test -p iceberg-rust --lib
88

99
test-datafusion_iceberg:
10-
cargo test -p datafusion_iceberg --tests -j 2 && cargo clean -p datafusion_iceberg
10+
cargo test -p datafusion_iceberg --tests -j 2
1111

1212
test-rest-catalog:
13-
cargo test -p iceberg-rest-catalog --lib && cargo clean -p iceberg-rest-catalog
13+
cargo test -p iceberg-rest-catalog --lib
1414

1515
test-file-catalog:
16-
cargo test -p iceberg-file-catalog --lib && cargo clean -p iceberg-file-catalog
16+
cargo test -p iceberg-file-catalog --lib
1717

1818
test-sql-catalog:
19-
cargo test -p iceberg-sql-catalog --lib && cargo clean -p iceberg-sql-catalog
19+
cargo test -p iceberg-sql-catalog --lib
2020
clippy:
2121
cargo clippy --all-targets --all-features -- -D warnings
2222
fmt:

0 commit comments

Comments
 (0)