Skip to content

Commit 8ab5fd7

Browse files
ci/macos: speedup builds (koreader#2185)
It looks like the make / ninja `-l` (cap jobs to load-average) option does not work well, resulting in slower builds, so disable its use and hard-code the maximum number of jobs to each runner's number of processors.
1 parent 45a178a commit 8ab5fd7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ jobs:
2222
platform: 'x86-64'
2323
xcode_version: '15.2'
2424
deployment_target: '10.15'
25+
jobs: 4
2526
- image: '14'
2627
platform: 'ARM64'
2728
xcode_version: '15.4'
2829
deployment_target: '11.0'
30+
jobs: 3
2931
- image: '15'
3032
platform: 'ARM64'
3133
xcode_version: '16.0'
3234
deployment_target: '14.6.1'
35+
jobs: 3
3336

3437
name: "macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }}"
3538

@@ -41,7 +44,7 @@ jobs:
4144
CLICOLOR_FORCE: '1'
4245
KODEBUG: ""
4346
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target }}
44-
MAKEFLAGS: 'OUTPUT_DIR=build'
47+
MAKEFLAGS: OUTPUT_DIR=build PARALLEL_LOAD= PARALLEL_JOBS=${{ matrix.jobs }}
4548

4649
steps:
4750

0 commit comments

Comments
 (0)