Skip to content
Merged
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ jobs:

- name: Build (release mode)
uses: PyO3/maturin-action@v1
if: inputs.build_mode == 'release'
# temporarily comment out to verify it works in the PR
# if: inputs.build_mode == 'release'
env:
CARGO_BUILD_JOBS: 2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should help, we can even do CARGO_BUILD_JOBS=1 and also add it to the "debug" mode below on L241

with:
target: aarch64-unknown-linux-gnu
manylinux: "2_28"
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ datafusion-python-util = { path = "crates/util" }
lto = true
codegen-units = 1

[profile.release.package.substrait]
opt-level = 1
codegen-units = 16

Copy link
Copy Markdown
Contributor

@kevinjqliu kevinjqliu Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets see if scoping it to substrait will help here.

I think we might need to bite the bullet and do this:

[profile.release]
lto = "thin"
codegen-units = 4

or override the options using env var just for that one job.

but note that this affects the final artifact

# We cannot publish to crates.io with any patches in the below section. Developers
# must remove any entries in this section before creating a release candidate.
[patch.crates-io]
Loading