From b72f395274c147ef37b2ca2be783ecf43c42c4fd Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Tue, 6 Feb 2024 10:53:52 -0300 Subject: [PATCH 1/4] feat: add build script --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ Readme.md | 5 +++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 Readme.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..84cabca --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +on: + push: + branches: + - buildscripts + +env: + LLVM_VERSION: 17.0.6 +jobs: + build: + name: Build + runs-on: macos-14 + steps: + - uses: actions/checkout@v4 + with: + repository: llvm/llvm-project + ref: llvmorg-${{env.LLVM_VERSION}} + - name: Build + run: | + cmake -S llvm -B build_osx -G "Ninja" -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" -DLLVM_ENABLE_PROJECTS="clang;lld;polly" -DLLVM_ENABLE_ASSERTIONS=Off -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/llvm-arm64 + cmake --build build_osx --target install + - name: Compress + run: | + cd /tmp + tar -czf llvm-arm64.tar.gz llvm-arm64 + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: llvm-arm64 + path: /tmp/llvm-arm64.tar.gz diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..d7b8568 --- /dev/null +++ b/Readme.md @@ -0,0 +1,5 @@ +# iOS LLVM + +Due to large file sizes we switched to GitHub Releases. + +Please download the target release and extract on the v8 ios repository. From f0e33638b229c12231a7970d5437f31dbafab586 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Tue, 6 Feb 2024 10:57:37 -0300 Subject: [PATCH 2/4] ci: explicit arm build --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84cabca..7c11f6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ env: LLVM_VERSION: 17.0.6 jobs: build: - name: Build + name: Build arm runs-on: macos-14 steps: - uses: actions/checkout@v4 @@ -16,7 +16,7 @@ jobs: ref: llvmorg-${{env.LLVM_VERSION}} - name: Build run: | - cmake -S llvm -B build_osx -G "Ninja" -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" -DLLVM_ENABLE_PROJECTS="clang;lld;polly" -DLLVM_ENABLE_ASSERTIONS=Off -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/llvm-arm64 + cmake -S llvm -B build_osx -G "Ninja" -DCMAKE_OSX_ARCHITECTURES=arm64 -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" -DLLVM_ENABLE_PROJECTS="clang;lld;polly" -DLLVM_ENABLE_ASSERTIONS=Off -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/llvm-arm64 cmake --build build_osx --target install - name: Compress run: | From 1400d42aa96b263f79b7c159c78a3d7bd00e38df Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Tue, 6 Feb 2024 11:11:57 -0300 Subject: [PATCH 3/4] ci: push From f1973ee0f158f79a426c55079cfae63fca5983a8 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Tue, 6 Feb 2024 11:12:24 -0300 Subject: [PATCH 4/4] ci: fix branch name --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c11f6f..0f7edd5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ on: push: branches: - - buildscripts + - buildcripts env: LLVM_VERSION: 17.0.6