Skip to content

Commit

Permalink
ci: Limit CMake threads to fix crash compiling libz-ng-sys on macOS (
Browse files Browse the repository at this point in the history
…#14715)

Co-authored-by: Stijn de Gooijer <stijndegooijer@gmail.com>
  • Loading branch information
nameexhaustion and stinodego authored Feb 27, 2024
1 parent 63e3fdc commit b4ed30b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
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

0 comments on commit b4ed30b

Please sign in to comment.