Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 11 additions & 19 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-C debuginfo=0 -C codegen-units=16"
CARGO_TARGET_DIR: ${{ github.workspace }}/.cargo-target
CARGO_INCREMENTAL: "0"

jobs:
build-wheel:
Expand All @@ -32,16 +32,12 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- name: Cache Rust build (shared)
uses: actions/cache@v4
- uses: Swatinem/rust-cache@v2
with:
path: |
.cargo-target
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
shared-key: "lance-context-deps"
workspaces: |
crates/lance-context-core
python
- name: Install dependencies
run: |
sudo apt update
Expand Down Expand Up @@ -89,16 +85,12 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- name: Cache Rust build (shared)
uses: actions/cache@v4
- uses: Swatinem/rust-cache@v2
with:
path: |
.cargo-target
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
shared-key: "lance-context-deps"
workspaces: |
crates/lance-context-core
python
- name: Install dependencies
run: |
sudo apt update
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env:
RUSTFLAGS: "-C debuginfo=1"
RUST_BACKTRACE: "1"
CARGO_INCREMENTAL: "0"
CARGO_TARGET_DIR: ${{ github.workspace }}/.cargo-target

jobs:
test:
Expand All @@ -29,23 +28,18 @@ jobs:
matrix:
toolchain:
- stable
- nightly
steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain
run: |
rustup toolchain install ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
- name: Cache Rust build (shared)
uses: actions/cache@v4
- uses: Swatinem/rust-cache@v2
with:
path: |
.cargo-target
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
shared-key: "lance-context-deps"
workspaces: |
crates/lance-context-core
python
- name: Install dependencies
run: |
sudo apt update
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-C debuginfo=1"
CARGO_INCREMENTAL: "0"

jobs:
format:
Expand All @@ -37,7 +38,10 @@ jobs:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
workspaces: .
shared-key: "lance-context-deps"
workspaces: |
crates/lance-context-core
python
- name: Install dependencies
run: |
sudo apt update
Expand Down
Loading