Skip to content

Commit

Permalink
specify shell property
Browse files Browse the repository at this point in the history
  • Loading branch information
J G committed Oct 18, 2024
1 parent 908b3bd commit d6a8dbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/set-make-job-count/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ runs:
- name: set-jobs-macOS
run: |
echo MAKE_JOB_COUNT=$(printf '%s\n%s' $(( $(sysctl -n hw.memsize) * 4 / (1073741824 * 11) )) $(sysctl -n hw.logicalcpu) | sort -n | head -n1 | sed -e 's/^0$/1/') >> $GITHUB_ENV
shell: bash
if: runner.os == 'macOS'
- name: set-jobs-windows
run: |
Expand All @@ -16,3 +17,4 @@ runs:
run: |
echo MAKE_JOB_COUNT=$(printf '%s\n%s' $(( $(vmstat -s --unit M | grep 'total memory' | cut -dM -f1) * 4 / (1024 * 11) )) $(nproc) | sort -n | head -n1 | sed -e 's/^0$/1/') >> $GITHUB_ENV
if: runner.os == 'Linux'
shell: bash

0 comments on commit d6a8dbf

Please sign in to comment.