Skip to content

Commit 9339f11

Browse files
justinwsmithjustsmth
authored andcommitted
CI for compiling w/ Clang on Windows
1 parent d4f233c commit 9339f11

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/mingw.yml .github/workflows/windows-alt.yml

+29-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: MinGW
1+
name: Windows Alternative Compilers
22
on:
33
pull_request:
44
branches: [ '*' ]
@@ -40,3 +40,31 @@ jobs:
4040
run: cmake --build ./build --target all
4141
- name: Run tests
4242
run: cmake --build ./build --target run_tests
43+
clang:
44+
if: github.repository == 'aws/aws-lc'
45+
runs-on: windows-latest
46+
steps:
47+
- name: Install NASM
48+
uses: ilammy/[email protected]
49+
- name: Checkout
50+
uses: actions/checkout@v4
51+
- name: Install LLVM and Clang
52+
uses: KyleMayes/install-llvm-action@v2
53+
id: clang
54+
with:
55+
version: 16
56+
env: true
57+
- name: Setup CMake
58+
uses: threeal/[email protected]
59+
with:
60+
generator: Ninja
61+
c-compiler: "C:/Program Files/LLVM/bin/clang.exe"
62+
cxx-compiler: "C:/Program Files/LLVM/bin/clang++.exe"
63+
options: |
64+
CMAKE_SYSTEM_NAME=Windows \
65+
CMAKE_SYSTEM_PROCESSOR=x86_64 \
66+
CMAKE_BUILD_TOOL=ninja.exe \
67+
- name: Build Project
68+
run: cmake --build ./build --target all
69+
- name: Run tests
70+
run: cmake --build ./build --target run_tests

0 commit comments

Comments
 (0)