Skip to content

Commit

Permalink
CI for compiling w/ Clang on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwsmith authored and justsmth committed Apr 9, 2024
1 parent d4f233c commit 9339f11
Showing 1 changed file with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: MinGW
name: Windows Alternative Compilers
on:
pull_request:
branches: [ '*' ]
Expand Down Expand Up @@ -40,3 +40,31 @@ jobs:
run: cmake --build ./build --target all
- name: Run tests
run: cmake --build ./build --target run_tests
clang:
if: github.repository == 'aws/aws-lc'
runs-on: windows-latest
steps:
- name: Install NASM
uses: ilammy/setup-nasm@v1.5.1
- name: Checkout
uses: actions/checkout@v4
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
id: clang
with:
version: 16
env: true
- name: Setup CMake
uses: threeal/cmake-action@v1.3.0
with:
generator: Ninja
c-compiler: "C:/Program Files/LLVM/bin/clang.exe"
cxx-compiler: "C:/Program Files/LLVM/bin/clang++.exe"
options: |
CMAKE_SYSTEM_NAME=Windows \
CMAKE_SYSTEM_PROCESSOR=x86_64 \
CMAKE_BUILD_TOOL=ninja.exe \
- name: Build Project
run: cmake --build ./build --target all
- name: Run tests
run: cmake --build ./build --target run_tests

0 comments on commit 9339f11

Please sign in to comment.