From d524b85133d0990c7cf45da54d25b4e098f9d7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Wed, 24 Jul 2024 20:36:38 -0300 Subject: [PATCH] Install parallel - Replace nproc with native macOS command --- .github/workflows/sdk.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index d23866f..9433f6f 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -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