mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-03 18:32:55 +00:00
ci: reduce number of build jobs on aarch64 to avoid OOM (#970)
This commit is contained in:
7
.github/workflows/npm-publish.yml
vendored
7
.github/workflows/npm-publish.yml
vendored
@@ -84,6 +84,13 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
# Buildjet aarch64 runners have only 1.5 GB RAM per core, vs 3.5 GB per core for
|
||||
# x86_64 runners. Cargo defaults to spawn a job per core, but needs a lot
|
||||
# of memory per job. Thus for ARM we need to reduce the number of jobs
|
||||
# to avoid OOM errors when building.
|
||||
- name: Configure aarch64 build
|
||||
if: ${{ matrix.config.arch == 'aarch64' }}
|
||||
run: echo "CARGO_BUILD_JOBS=4" >> "$GITHUB_ENV"
|
||||
- name: Build Linux Artifacts
|
||||
run: |
|
||||
bash ci/build_linux_artifacts.sh ${{ matrix.config.arch }}
|
||||
|
||||
Reference in New Issue
Block a user