Skip to content

Commit

Permalink
New release.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Feb 12, 2022
1 parent cd804f1 commit d52ccd8
Show file tree
Hide file tree
Showing 6 changed files with 517 additions and 1,174 deletions.
56 changes: 41 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,50 @@ on:
name: release xcross

jobs:
xcross:
# android requires at least d8 and adb to be useful and since it's widely available we
# don't have to repackage it
#android:
# runs-on: macos-11
# steps:
# - run: mkdir -p xcross/android
# - run: ls /Users/runner/Library/Android/sdk/ndk
# - run: cp -R /Users/runner/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/sysroot xcross/android
# - run: cp -R /Users/runner/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.8 xcross/android/clang
# - run: echo "INPUT(-lunwind)" > xcross/android/clang/lib/linux/aarch64/libgcc.a

macos:
runs-on: macos-11
steps:
#- run: brew install coreutils
- run: mkdir -p xcross/android
- run: ls /Users/runner/Library/Android/sdk/ndk
- run: cp -R /Users/runner/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/sysroot xcross/android
- run: cp -R /Users/runner/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.8 xcross/android/clang
- run: echo "INPUT(-lunwind)" > xcross/android/clang/lib/linux/aarch64/libgcc.a
- run: ls /Applications/Xcode*
- run: cp -R /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk xcross/macos
- run: cp -R /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk xcross/ios
#- name: Install rust toolchain
# uses: hecrj/setup-rust-action@v1
#- run: cargo install xwin
#- run: xwin --accept-license yes splat --output xcross/windows --disable-symlinks
- run: gtar --zstd -cf xcross.tar.zst xcross
- run: gh release upload $TAG xcross.tar.zst -R cloudpeers/xcross
- run: gtar --zstd -cf MacOSX.sdk.tar.zst $SDK_PATH
env:
SDK_PATH: /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
- run: gh release upload $TAG MacOSX.sdk.tar.zst -R cloudpeers/xcross
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}

ios:
runs-on: macos-11
steps:
- run: ls /Applications/Xcode*
- run: gtar --zstd -cf iPhoneOS.sdk.tar.zst $SDK_PATH
env:
SDK_PATH: /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
- run: gh release upload $TAG iPhoneOS.sdk.tar.zst -R cloudpeers/xcross
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}

windows:
runs-on: ubuntu-latest
steps:
- name: Install rust toolchain
uses: hecrj/setup-rust-action@v1
- run: cargo install xwin
- run: xwin --accept-license yes splat --output Windows.sdk
- run: tar --zstd -cf Windows.sdk.tar.zst Windows.sdk
- run: gh release upload $TAG Windows.sdk.tar.zst -R cloudpeers/xcross
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
Loading

0 comments on commit d52ccd8

Please sign in to comment.