Skip to content

Commit

Permalink
update (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund committed Dec 12, 2023
1 parent 00ce667 commit 7bb33d4
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:

- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: latest
- name: Install newer Clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 17
- uses: actions/checkout@v2

Expand All @@ -38,15 +38,17 @@ jobs:
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
# Force libc++ due to https://github.com/actions/runner-images/issues/8659
run: |
export LDFLAGS="-fuse-ld=lld"
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_OPENMP=on -DENABLE_PYTHON=off -DENABLE_TBB=off -DCMAKE_CXX_FLAGS="-stdlib=libc++"
export CXX=clang++-17
export CC=clang-17
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_OPENMP=on -DENABLE_PYTHON=off -DENABLE_TBB=off -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
export LDFLAGS="-fuse-ld=lld"
export CXX=clang++-17
export CC=clang-17
cmake --build . --config $BUILD_TYPE --target faunus -j 2
- name: Test
Expand Down

0 comments on commit 7bb33d4

Please sign in to comment.