Skip to content

Commit

Permalink
fix: limit parallel jobs in ci
Browse files Browse the repository at this point in the history
limit number of parallel jobs on macos as its version of make seems to be
overwhelmed with too many jobs, causing an error
  • Loading branch information
chrjabs committed Feb 22, 2024
1 parent 19f1227 commit 32f5a73
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/cadical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ jobs:
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-cadical --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Cargo test
run: cargo test -p rustsat-cadical --verbose
run: cargo test -p rustsat-cadical --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}

6 changes: 5 additions & 1 deletion .github/workflows/glucose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ jobs:
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-glucose --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Cargo test
run: cargo test -p rustsat-glucose --verbose
run: cargo test -p rustsat-glucose --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
7 changes: 6 additions & 1 deletion .github/workflows/kissat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ jobs:
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-kissat --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Cargo test
run: cargo test -p rustsat-kissat --verbose
run: cargo test -p rustsat-kissat --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}

6 changes: 5 additions & 1 deletion .github/workflows/minisat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ jobs:
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-minisat --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Cargo test
run: cargo test -p rustsat-minisat --verbose
run: cargo test -p rustsat-minisat --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
4 changes: 4 additions & 0 deletions .github/workflows/rustsat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat --verbose --features=all
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Cargo test
run: cargo test -p rustsat --verbose --features=all
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}

pystubs:
name: Test python stubs
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ jobs:
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat-tools --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Cargo test
run: cargo test -p rustsat-tools --verbose
run: cargo test -p rustsat-tools --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}

0 comments on commit 32f5a73

Please sign in to comment.