Skip to content

Commit 3224240

Browse files
authored
Create build-llvm-for-windows.yaml
build llvm via github-action
1 parent 2692ff8 commit 3224240

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build LLVM for Windows
2+
3+
on:
4+
push:
5+
branches: [ build ]
6+
pull_request:
7+
branches: [ build ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
choco install ninja cmake -y
21+
22+
- name: Configure LLVM
23+
run: |
24+
mkdir build
25+
cd build
26+
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ../llvm
27+
28+
- name: Build LLVM
29+
run: |
30+
cd build
31+
ninja
32+
33+
- name: Archive Build Artifacts
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: llvm-windows-build
37+
path: build/

0 commit comments

Comments
 (0)