Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Limit CMake threads to fix crash compiling libz-ng-sys on macOS #14715

Merged
merged 3 commits into from
Feb 27, 2024
Merged
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
5 changes: 5 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
paths:
- '**.rs'
- '**.py'
- .github/workflows/codecov.yml
push:
branches:
- main
paths:
- '**.rs'
- '**.py'
- .github/workflows/codecov.yml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -32,6 +34,9 @@ jobs:
CARGO_LLVM_COV: 1
CARGO_LLVM_COV_SHOW_ENV: 1
CARGO_LLVM_COV_TARGET_DIR: '/Users/runner/work/polars/polars/target'
# Workaround for issue compiling libz-ng-sys crate on macOS (resource temporarily unavailable)
# See: https://github.com/pola-rs/polars/pull/14715
CMAKE_BUILD_PARALLEL_LEVEL: 10

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ jobs:
with:
swap-size-gb: 10

# Workaround for issue compiling libz-ng-sys crate on macOS (resource temporarily unavailable)
# See: https://github.com/pola-rs/polars/pull/14715
- name: Set cmake build threads for MacOS
if: matrix.os == 'macos-latest'
run: echo "CMAKE_BUILD_PARALLEL_LEVEL=10" >> $GITHUB_ENV

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
Loading