[llvm] Create build-llvm-for-windows.yaml (PR #153950)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 16 05:01:13 PDT 2025


https://github.com/ealcry created https://github.com/llvm/llvm-project/pull/153950

build llvm via github-action

>From 32242409cef439077ca39f32714975c10c45113b Mon Sep 17 00:00:00 2001
From: ealcry <muyan at stu.njtc.edu.cn>
Date: Sat, 16 Aug 2025 19:53:27 +0800
Subject: [PATCH] Create build-llvm-for-windows.yaml

build llvm via github-action
---
 .github/build-llvm-for-windows.yaml | 37 +++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 .github/build-llvm-for-windows.yaml

diff --git a/.github/build-llvm-for-windows.yaml b/.github/build-llvm-for-windows.yaml
new file mode 100644
index 0000000000000..e92cf4f1bfc89
--- /dev/null
+++ b/.github/build-llvm-for-windows.yaml
@@ -0,0 +1,37 @@
+name: Build LLVM for Windows
+
+on:
+  push:
+    branches: [ build ]
+  pull_request:
+    branches: [ build ]
+  workflow_dispatch:
+
+jobs:
+  build:
+    runs-on: windows-latest
+
+    steps:
+    - name: Checkout code
+      uses: actions/checkout at v4
+
+    - name: Install dependencies
+      run: |
+        choco install ninja cmake -y
+
+    - name: Configure LLVM
+      run: |
+        mkdir build
+        cd build
+        cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ../llvm
+
+    - name: Build LLVM
+      run: |
+        cd build
+        ninja
+
+    - name: Archive Build Artifacts
+      uses: actions/upload-artifact at v4
+      with:
+        name: llvm-windows-build
+        path: build/



More information about the llvm-commits mailing list