Skip to content

Commit f36b1e6

Browse files
committed
Add swap during release build
1 parent 3ee76a8 commit f36b1e6

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,23 @@ jobs:
226226
with:
227227
enable-cache: true
228228

229+
- name: Add extra swap for release build
230+
# if: inputs.build_mode == 'release'
231+
run: |
232+
set -euxo pipefail
233+
sudo swapoff -a || true
234+
sudo rm -f /swapfile
235+
sudo fallocate -l 16G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=16384
236+
sudo chmod 600 /swapfile
237+
sudo mkswap /swapfile
238+
sudo swapon /swapfile
239+
free -h
240+
swapon --show
241+
229242
- name: Build (release mode)
230243
uses: PyO3/maturin-action@v1
231244
# temporarily comment out to verify it works in the PR
232245
# if: inputs.build_mode == 'release'
233-
env:
234-
CARGO_BUILD_JOBS: 2
235246
with:
236247
target: aarch64-unknown-linux-gnu
237248
manylinux: "2_28"

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ datafusion-python-util = { path = "crates/util" }
6767
lto = true
6868
codegen-units = 1
6969

70-
[profile.release.package.substrait]
71-
opt-level = 1
72-
codegen-units = 16
73-
7470
# We cannot publish to crates.io with any patches in the below section. Developers
7571
# must remove any entries in this section before creating a release candidate.
7672
[patch.crates-io]

0 commit comments

Comments
 (0)