Skip to content

Commit

Permalink
Install parallel
Browse files Browse the repository at this point in the history
 - Replace nproc with native macOS command
  • Loading branch information
HeavenVolkoff committed Jul 24, 2024
1 parent 3f8cee0 commit d524b85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ jobs:
run:
shell: bash
steps:
- name: Install dependencies
run: |
set -euxo pipefail
brew install parallel
- name: Extract and compress Apple SDKs
run: |
set -euxo pipefail
export XZ_OPT="-T1 -9"
find /Applications/Xcode.app -type d -name 'SDKs' \
| xargs -I {} find {} -type l -name '*.sdk' \
| parallel -j$(nproc) tar -cJf "/tmp/{/}.tar.xz" -C {} .;
| parallel -j$(sysctl -n hw.ncpu) tar -cJf "/tmp/{/}.tar.xz" -C {} .;
- name: Create Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit d524b85

Please sign in to comment.