File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -67,10 +67,6 @@ datafusion-python-util = { path = "crates/util" }
6767lto = true
6868codegen-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 ]
You can’t perform that action at this time.
0 commit comments