-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.19 KB
/
clang.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Clang
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get LLVM 17 and Ninja via Homebrew
run: |
brew install llvm@17 ninja
- name: Make local build of libc++ with module enabled
run: |
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
CC=$(brew --prefix llvm@17)/bin/clang-17 \
CXX=$(brew --prefix llvm@17)/bin/clang++ \
cmake -G Ninja -S runtimes -B build \
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind"
ninja -C build
cd ../
- name: Configure
run: |
mkdir build
CC=$(brew --prefix llvm@17)/bin/clang-17 \
CXX=$(brew --prefix llvm@17)/bin/clang++ \
cmake -S . -G "Ninja" -B build \
-DLIBCXX_BUILD=${{ github.workspace }}/llvm-project/build
- name: Build
run: |
ninja -C build
- name: Run executable
run: |
./build/CppStandardLibraryModule