Skip to content

Commit

Permalink
Fix workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Dec 25, 2023
1 parent 23a6fdf commit 5d34453
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ on:

jobs:
build:
runs-on: macos-latest

runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: Get LLVM 17 via Homebrew
run: |
brew install llvm@17
- name: Clang 17
uses: KyleMayes/install-llvm-action@v1
with:
version: 17

- name: configure
run: |
mkdir build
cmake -S . -B build \
-DCMAKE_C_COMPILER=$(brew --prefix llvm@17)/bin/clang \
-DCMAKE_CXX_COMPILER=$(brew --prefix llvm@17)/bin/clang++ \
-DCMAKE_C_COMPILER=${{ env.LLVM_PATH }}/bin/clang \
-DCMAKE_CXX_COMPILER=${{ env.LLVM_PATH }}/bin/clang++ \
-DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -stdlib=libc++ -v" \
-DCMAKE_EXE_LINKER_FLAGS="${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi"
Expand Down

0 comments on commit 5d34453

Please sign in to comment.