|
9 | 9 | type: string |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - build_llvm: |
| 12 | + build_llvm_mac: |
| 13 | + name: Build LLVM |
| 14 | + runs-on: macos-14 |
| 15 | + steps: |
| 16 | + - name: checkout |
| 17 | + uses: actions/checkout@v3 |
| 18 | + - run: "brew install ninja" |
| 19 | + # Build and package LLVM. |
| 20 | + - run: "./build-llvm-libs.sh llvm-static-libs-macos-14.tar.gz" |
| 21 | + - uses: actions/upload-artifact@v4 |
| 22 | + with: |
| 23 | + name: llvm-static-libs-macos-14 |
| 24 | + path: llvm-static-libs-macos-14.tar.gz |
| 25 | + |
| 26 | + build_llvm_linux: |
13 | 27 | name: Build LLVM |
14 | 28 | strategy: |
15 | 29 | matrix: |
16 | | - os: [ubuntu-20.04, ubuntu-24.04-arm, macos-14] |
| 30 | + os: [ubuntu-24.04, ubuntu-24.04-arm] |
17 | 31 | runs-on: ${{ matrix.os }} |
| 32 | + container: ubuntu:20.04 |
| 33 | + env: |
| 34 | + DEBIAN_FRONTEND: noninteractive |
18 | 35 | steps: |
19 | 36 | - name: checkout |
20 | 37 | uses: actions/checkout@v3 |
21 | | - - if: contains(matrix.os, 'ubuntu') |
22 | | - run: "sudo apt update && sudo apt install -y ninja-build" |
23 | | - - if: contains(matrix.os, 'macos') |
24 | | - run: "brew install ninja" |
| 38 | + - run: "apt update && apt install -y ninja-build gcc g++ git wget" |
| 39 | + # Install recent CMake. |
| 40 | + - run: | |
| 41 | + export ARCH=${{ runner.arch == 'x64' && 'x86_64' || 'aarch64' }} |
| 42 | + wget https://github.com/Kitware/CMake/releases/download/v3.31.5/cmake-3.31.5-linux-$ARCH.sh -O cmake-install.sh |
| 43 | + chmod +x cmake-install.sh |
| 44 | + ./cmake-install.sh --skip-license --prefix=/usr/local |
| 45 | + rm cmake-install.sh |
25 | 46 | # Build and package LLVM. |
26 | | - - run: "./build-llvm-libs.sh llvm-static-libs-${{ matrix.os }}.tar.gz" |
| 47 | + - run: "./build-llvm-libs.sh llvm-static-libs-ubuntu-20.04-${{ runner.arch }}.tar.gz" |
27 | 48 | - uses: actions/upload-artifact@v4 |
28 | 49 | with: |
29 | | - name: llvm-static-libs-${{ matrix.os }} |
30 | | - path: llvm-static-libs-${{ matrix.os }}.tar.gz |
| 50 | + name: llvm-static-libs-ubuntu-20.04-${{ runner.arch }} |
| 51 | + path: llvm-static-libs-ubuntu-20.04-${{ runner.arch }}.tar.gz |
31 | 52 |
|
32 | 53 | create_release: |
33 | 54 | name: Create release |
34 | 55 | runs-on: ubuntu-latest |
35 | | - needs: [build_llvm] |
| 56 | + needs: [build_llvm_mac, build_llvm_linux] |
36 | 57 | permissions: |
37 | 58 | contents: write # for creating releases |
38 | 59 | steps: |
|
0 commit comments