Skip to content

Commit e69d416

Browse files
committed
wip
1 parent ac0c6aa commit e69d416

1 file changed

Lines changed: 17 additions & 34 deletions

File tree

.github/workflows/toolchain.yml

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,24 @@ env:
66
on:
77
push:
88
branches: ["main"]
9-
tags: ["**"]
109
pull_request:
1110
branches: ["main"]
1211
jobs:
13-
# macos:
14-
# name: macOS toolchain
15-
# runs-on: macos-latest
16-
# steps:
17-
# - uses: actions/checkout@v5
18-
# - uses: actions/checkout@v5
19-
# with:
20-
# repository: 'llvm/llvm-project'
21-
# ref: ${{ env.LLVM_REF }}
22-
# path: 'llvm'
23-
# - name: Build toolchain
24-
# run: |
25-
# brew install ccache
26-
# mkdir build.dir
27-
# cmake -G Ninja -B build.dir -C ToolchainCache.cmake llvm/llvm -DCMAKE_INSTALL_PREFIX=darwin-aarch64.toolchain
28-
# cmake --build build.dir --target stage2-distribution
29-
# cmake --build build.dir --target stage2-install-distribution
30-
# tar -czvf darwin-aarch64.toolchain.tar.gz darwin-aarch64.toolchain
31-
# - name: Upload toolchain
32-
# uses: svenstaro/upload-release-action@v2
33-
# with:
34-
# repo_token: ${{ secrets.GITHUB_TOKEN }}
35-
# file: "*.tar.*"
36-
# tag: ${{ github.run_id }}
37-
# overwrite: true
38-
# file_glob: true
39-
40-
ubuntu:
41-
name: Ubuntu toolchain (${{ matrix.ARCH}})
12+
toolchain-build:
13+
name: ${{ matrix.OS }} toolchain (${{ matrix.ARCH}})
4214
runs-on: ${{ matrix.RUNNER }}
4315
strategy:
4416
matrix:
4517
include:
46-
- ARCH: "x86_64"
18+
- ARCH: x86_64
4719
RUNNER: ubuntu-22.04
48-
- ARCH: "aarch64"
20+
OS: Linux
21+
- ARCH: aarch64
4922
RUNNER: ubuntu-22.04-arm
23+
OS: Linux
24+
- ARCH: aarch64
25+
RUNNER: macos-latest
26+
OS: Darwin
5027
steps:
5128
- uses: actions/checkout@v5
5229
- uses: actions/checkout@v5
@@ -58,10 +35,16 @@ jobs:
5835
run: |
5936
sudo apt-get install ccache ninja-build
6037
mkdir build.dir
61-
cmake -G Ninja -B build.dir -C ToolchainCache.cmake llvm/llvm -DCMAKE_INSTALL_PREFIX=darwin-aarch64.toolchain
38+
cmake -G Ninja \
39+
-B build.dir \
40+
-C ToolchainCache.cmake \
41+
llvm/llvm \
42+
-DCMAKE_INSTALL_PREFIX=${{ matrix.OS }}-${{ matrix.ARCH }}.toolchain
6243
cmake --build build.dir --target stage2-distribution
6344
cmake --build build.dir --target stage2-install-distribution
64-
tar -czvf linux-${{ matrix.ARCH }}.toolchain.tar.gz linux-${{ matrix.ARCH }}.toolchain
45+
tar -czvf \
46+
${{ matrix.OS }}-${{ matrix.ARCH }}.toolchain.tar.gz \
47+
${{ matrix.OS }}-${{ matrix.ARCH }}.toolchain
6548
- name: Upload toolchain
6649
uses: svenstaro/upload-release-action@v2
6750
with:

0 commit comments

Comments
 (0)