Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
simonresch committed Feb 14, 2025
1 parent 660245a commit 8c325a3
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/build-llvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,26 @@ on:
type: string

jobs:
build_llvm_mac:
name: Build LLVM
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v3
- run: "brew install ninja"
# Build and package LLVM.
- run: "./build-llvm-libs.sh llvm-static-libs-macos-14.tar.gz"
- uses: actions/upload-artifact@v4
with:
name: llvm-static-libs-macos-14
path: llvm-static-libs-macos-14.tar.gz
# build_llvm_mac:
# name: Build LLVM
# runs-on: macos-14
# steps:
# - name: checkout
# uses: actions/checkout@v3
# - run: "brew install ninja"
# # Build and package LLVM.
# - run: "./build-llvm-libs.sh llvm-static-libs-macos-14.tar.gz"
# - uses: actions/upload-artifact@v4
# with:
# name: llvm-static-libs-macos-14
# path: llvm-static-libs-macos-14.tar.gz

build_llvm_linux:
name: Build LLVM
strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]
# os: [ubuntu-24.04, ubuntu-24.04-arm]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}
container: ubuntu:20.04
env:
Expand All @@ -38,6 +39,8 @@ jobs:
- run: "apt update && apt install -y ninja-build clang git wget"
# Install recent CMake.
- run: |
export ARCH=${{ runner.arch == 'x64' && 'x86_64' || 'aarch64' }}
echo "Currently on arch ${{ runner.arch }}"
wget https://github.com/Kitware/CMake/releases/download/v3.31.5/cmake-3.31.5-linux-x86_64.sh
chmod +x cmake-3.31.5-linux-x86_64.sh
./cmake-3.31.5-linux-x86_64.sh --skip-license --prefix=/usr/local
Expand All @@ -52,7 +55,8 @@ jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
needs: [build_llvm_mac, build_llvm_linux]
#needs: [build_llvm_mac, build_llvm_linux]
needs: [build_llvm_linux]
permissions:
contents: write # for creating releases
steps:
Expand Down

0 comments on commit 8c325a3

Please sign in to comment.