-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add macos-sysroot workflow, non operational just debugging
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
macos_sdk_version: | ||
description: "Version of the macOS SDK to package." | ||
type: string | ||
required: true | ||
github_tag: | ||
description: "Tag to upload the release to." | ||
type: string | ||
required: false | ||
|
||
name: macOS SDK Sysroot | ||
|
||
jobs: | ||
package_sdk: | ||
name: Package macOS SDK | ||
runs-on: macos-14 | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Package SDK | ||
run: | | ||
ls -lAh /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs | ||
# mkdir downloads | ||
# mkdir artifacts | ||
|
||
# component=${{ matrix.component }} | ||
# target=${{ matrix.target }} | ||
# version=${{ inputs.rust_version }} | ||
|
||
# cd downloads | ||
# full_name="$component-$version-$target" | ||
# xz_name="$full_name.tar.xz" | ||
|
||
# wget https://static.rust-lang.org/dist/$xz_name | ||
|
||
# tar -xJf $xz_name | ||
# tar -cf - $full_name | zstd --ultra -22 -o "../artifacts/$full_name.tar.zst" | ||
|
||
# - name: Determine Release Tag | ||
# run: | | ||
# RELEASE_TAG="rust-${{ inputs.rust_version }}" | ||
# if [ -n "${{ inputs.github_tag }}" ]; then | ||
# RELEASE_TAG="${{ inputs.github_tag }}" | ||
# fi | ||
# echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV | ||
|
||
# - name: Upload zstd Compressed Artifacts to Release | ||
# uses: svenstaro/upload-release-action@v2 | ||
# with: | ||
# file: "artifacts/*.tar.zst" | ||
# file_glob: true | ||
# tag: ${{ env.RELEASE_TAG }} | ||
# overwrite: true | ||
|