-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26479d7
commit 5ce629f
Showing
2 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Test with Clang 17 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install LLVM and Clang | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: 17 | ||
|
||
- name: Install CMake and Ninja | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Build project | ||
run: | | ||
mkdir build | ||
cmake -S . -B build -G Ninja \ | ||
-DCMAKE_CXX_COMPILER=${{ env.LLVM_PATH }}/bin/clang++ \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
ninja -C build | ||
- name: Run tests | ||
run: | | ||
cd build | ||
./mdspan_formatter_test |
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