Skip to content

Commit

Permalink
Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Apr 28, 2024
1 parent 35c5a02 commit 5fcecc7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
std_version: [20, 23]
clang_version: [17, 18]

steps:
- name: Checkout
Expand All @@ -31,24 +30,26 @@ jobs:
- name: Get LLVM and Ninja via Homebrew
run: |
brew install llvm@${{ matrix.clang_version }} ninja
brew install llvm 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
cmake -G Ninja -S runtimes -B build \
CC=$(brew --prefix llvm)/bin/clang \
CXX=$(brew --prefix llvm)/bin/clang++ \
cmake -G Ninja -S runtimes -B build \
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind"
ninja -C build
cd ../
- name: Configure
run: |
mkdir build
CXX=$(brew --prefix llvm@${{ matrix.clang_version }})/bin/clang++ \
cmake -S . -G "Ninja" -B build \
-DCMAKE_CXX_STANDARD=${{ matrix.std_version }} \
CC=$(brew --prefix llvm)/bin/clang \
CXX=$(brew --prefix llvm)/bin/clang++ \
cmake -S . -G Ninja -B build \
-DCMAKE_CXX_STANDARD=${{ matrix.std_version }} \
-DLIBCXX_BUILD=${{ github.workspace }}/llvm-project/build
- name: Build
Expand Down

0 comments on commit 5fcecc7

Please sign in to comment.