Skip to content

Commit 73f4da3

Browse files
committed
chore: refactor the Rust build to use as much as possible of sccache
Signed-off-by: R. Tyler Croy <[email protected]>
1 parent c6c9d47 commit 73f4da3

File tree

1 file changed

+9
-41
lines changed

1 file changed

+9
-41
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,9 @@ env:
1818
RUSTC_WRAPPER: "sccache"
1919

2020
jobs:
21-
default_build:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- uses: actions/checkout@v3
25-
- name: Run sccache-cache
26-
uses: mozilla-actions/[email protected]
27-
28-
- name: Install minimal stable with clippy and rustfmt
29-
uses: actions-rs/toolchain@v1
30-
with:
31-
profile: default
32-
toolchain: '1.82'
33-
override: true
34-
- name: Format
35-
run: cargo fmt -- --check
36-
- name: Build
37-
run: (cd crates/deltalake && cargo build)
38-
3921
build:
4022
strategy:
41-
fail-fast: false
23+
fail-fast: true
4224
matrix:
4325
os:
4426
- ubuntu-latest
@@ -56,37 +38,23 @@ jobs:
5638
toolchain: '1.82'
5739
override: true
5840

41+
- name: Format
42+
run: cargo fmt -- --check
43+
44+
- name: Default build
45+
run: (cd crates/deltalake && cargo build)
46+
5947
- name: build and lint with clippy
6048
run: cargo clippy --features ${{ env.DEFAULT_FEATURES }} --tests
6149

6250
- name: Spot-check build for native-tls features
6351
run: cargo clippy --no-default-features --features azure,datafusion,s3-native-tls,gcs,glue --tests
6452

65-
- name: Check docs
66-
run: cargo doc --no-deps --features ${{ env.DEFAULT_FEATURES }}
67-
6853
- name: Check no default features (except rustls)
6954
run: cargo check --no-default-features --features rustls
7055

71-
test:
72-
strategy:
73-
fail-fast: false
74-
matrix:
75-
os:
76-
# The coverage action actually is running the Linux-based test.
77-
- windows-latest
78-
runs-on: ${{ matrix.os }}
79-
steps:
80-
- uses: actions/checkout@v3
81-
- name: Run sccache-cache
82-
uses: mozilla-actions/[email protected]
83-
84-
- name: Install minimal stable with clippy and rustfmt
85-
uses: actions-rs/toolchain@v1
86-
with:
87-
profile: default
88-
toolchain: '1.82'
89-
override: true
56+
- name: Check docs
57+
run: cargo doc --no-deps --features ${{ env.DEFAULT_FEATURES }}
9058

9159
- name: Run tests
9260
run: |

0 commit comments

Comments
 (0)