Forgot README content #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Extract Apple SDKs | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
# Cancel previous runs of the same workflow on the same branch. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
sdks: | |
name: SDKs | |
runs-on: macos-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- 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 {} .; | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
body: 'Apple SDKs' | |
draft: true | |
files: '/tmp/*.sdk.tar.xz' | |
fail_on_unmatched_files: true |