From b0c815d6aa5748c4b4c9b963b86c422ba598617e Mon Sep 17 00:00:00 2001 From: Parker Timmerman Date: Sat, 27 Jul 2024 13:28:01 -0400 Subject: [PATCH] add macos-sysroot workflow, non operational just debugging --- .github/workflows/macos-sysroot.yml | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/macos-sysroot.yml diff --git a/.github/workflows/macos-sysroot.yml b/.github/workflows/macos-sysroot.yml new file mode 100644 index 0000000..14a6179 --- /dev/null +++ b/.github/workflows/macos-sysroot.yml @@ -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 +