Stripe2933 workflow patch #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |