This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
Build LLVM-Swift-5.10 Toolchain for Intel Mac #1
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-Swift-5.10 Toolchain for Intel Mac | |
on: | |
workflow_dispatch: | |
push: | |
branches: [llvm-swift-5.10-RELEASE] | |
jobs: | |
build: | |
runs-on: macos-14 | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: "llvm-swift-5.10-RELEASE" | |
submodules: "recursive" | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
shell: bash | |
run: | | |
brew install cmake | |
brew install ninja | |
- name: Build | |
shell: bash | |
run: | | |
mkdir build | |
cd build | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64 -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64" -DLLVM_ENABLE_ZSTD=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DLLVM_CREATE_XCODE_TOOLCHAIN=ON -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_BUILD_TOOLS=OFF -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DCMAKE_INSTALL_PREFIX="./install" ../llvm | |
ninja | |
ninja install-xcode-toolchain | |
tar -czvf Hikari_Swift-LLVM16.0.0git_Intel-Mac.tar.gz ./install/Toolchains/Hikari_Swift-LLVM16.0.0git.xctoolchain | |
- name: Upload Artifact | |
uses: actions/[email protected] | |
with: | |
name: Hikari_Swift-LLVM16.0.0git_Intel-Mac.tar.gz | |
path: build/Hikari_Swift-LLVM16.0.0git_Intel-Mac.tar.gz |