Added new explicit LICENSE #79
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: Build LLVM XCFrameworks for Release | |
on: [push] | |
jobs: | |
prepare-build-tools: | |
runs-on: macos-11 | |
if: ${{ false }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: ./build-tools.sh | |
- run: | | |
curl -OL https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-mac.zip | |
unzip ninja-mac.zip | |
mv ninja tools/bin | |
- run: tar -cJf tools.tar.xz tools/ | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: tools | |
path: tools.tar.xz | |
build-libffi: | |
runs-on: macos-11 | |
strategy: | |
matrix: | |
platformArch: [iphoneos, iphonesimulator, iphonesimulator-arm64, maccatalyst, maccatalyst-arm64] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build libffi for ${{ matrix.platformArch }} | |
run: source build-llvm.sh && build_libffi ${{ matrix.platformArch }} | |
- run: tar -cJf libffi-${{ matrix.platformArch }}.tar.xz libffi-${{ matrix.platformArch }}/ | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libffi-${{ matrix.platformArch }} | |
path: libffi-${{ matrix.platformArch }}.tar.xz | |
build-llvm: | |
needs: build-libffi # prepare-build-tools | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
platformArch: [iphoneos, iphonesimulator, iphonesimulator-arm64, maccatalyst, maccatalyst-arm64] | |
timeout-minutes: 1200 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
- name: Extract artifacts | |
run: find . -name "*.tar.xz" -exec tar xzf {} \; | |
- run: brew install ninja | |
- name: Build LLVM for ${{ matrix.platformArch }} | |
run: source build-llvm.sh && build_llvm ${{ matrix.platformArch }} | |
- run: tar -cJf LLVM-${{ matrix.platformArch }}.tar.xz LLVM-${{ matrix.platformArch }}/ | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: LLVM-${{ matrix.platformArch }} | |
path: LLVM-${{ matrix.platformArch }}.tar.xz | |
create-xcframework: | |
needs: build-llvm | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
- name: Extract artifacts | |
run: find . -name "*.tar.xz" -exec tar xzf {} \; | |
- name: Create XCFramework for Intel Macs | |
run: source build-llvm.sh && create_xcframework iphoneos iphonesimulator maccatalyst | |
- run: tar -cJf LLVM_Intel.xcframework.tar.xz LLVM.xcframework | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: LLVM_Intel | |
path: LLVM_Intel.xcframework.tar.xz | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libclang | |
path: libclang.tar.xz | |
- name: Create XCFramework for M1 Macs | |
run: source build-llvm.sh && rm -rf LLVM.xcframework && create_xcframework iphoneos iphonesimulator-arm64 maccatalyst-arm64 | |
- run: tar -cJf LLVM_M1.xcframework.tar.xz LLVM.xcframework | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: LLVM_M1 | |
path: LLVM_M1.xcframework.tar.xz |