Skip to content
Open
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
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ jobs:
with:
enable-cache: true

- name: Add extra swap for release build
if: inputs.build_mode == 'release'
run: |
set -euxo pipefail
sudo swapoff -a || true
sudo rm -f /swapfile
sudo fallocate -l 8G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=8192
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free -h
swapon --show

- name: Build (release mode)
uses: PyO3/maturin-action@v1
if: inputs.build_mode == 'release'
Expand Down Expand Up @@ -232,7 +245,7 @@ jobs:
set -euxo pipefail
sudo swapoff -a || true
sudo rm -f /swapfile
sudo fallocate -l 16G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=16384
sudo fallocate -l 8G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=8192
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we dont need all 16GB, take less disk space

sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ pyo3-build-config = "0.28"
datafusion-python-util = { path = "crates/util" }

[profile.release]
lto = true
codegen-units = 1
lto = "thin"
codegen-units = 2

# 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.
Expand Down
Loading