|
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 |
18 | 33 | steps: |
19 | 34 | - name: checkout |
20 | 35 | 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" |
| 36 | + - run: "apt update && apt install -y ninja-build cmake git" |
25 | 37 | # Build and package LLVM. |
26 | | - - run: "./build-llvm-libs.sh llvm-static-libs-${{ matrix.os }}.tar.gz" |
| 38 | + - run: "./build-llvm-libs.sh llvm-static-libs-ubuntu-20.04-${{ runner.arch }}.tar.gz" |
27 | 39 | - uses: actions/upload-artifact@v4 |
28 | 40 | with: |
29 | | - name: llvm-static-libs-${{ matrix.os }} |
30 | | - path: llvm-static-libs-${{ matrix.os }}.tar.gz |
| 41 | + name: llvm-static-libs-ubuntu-20.04-${{ runner.arch }} |
| 42 | + path: llvm-static-libs-ubuntu-20.04-${{ runner.arch }}.tar.gz |
31 | 43 |
|
32 | 44 | create_release: |
33 | 45 | name: Create release |
34 | 46 | runs-on: ubuntu-latest |
35 | | - needs: [build_llvm] |
| 47 | + needs: [build_llvm_mac, build_llvm_linux] |
36 | 48 | permissions: |
37 | 49 | contents: write # for creating releases |
38 | 50 | steps: |
|
0 commit comments