-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow prototype to build and test llvm-snippy on pre-commit and po…
…st-push
- Loading branch information
kv-sc
committed
Jan 10, 2025
1 parent
be46229
commit 340583a
Showing
10 changed files
with
48 additions
and
0 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,25 @@ | ||
name: Snippy pre-commit and post-push | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Install required compiler to be sure | ||
run: sudo apt-get install clang-14 ninja-build | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: CMake release config | ||
run: cmake -S llvm -B release/build -G Ninja -DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 -C .syntacore/release.cmake | ||
- name: CMake release build | ||
run: cmake --build release/build --target llvm-snippy | ||
- name: CMake release test | ||
run: env CTEST_OUTPUT_ON_FAILURE=1 cmake --build release/build --target check-llvm-tools-llvm-snippy |
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,15 @@ | ||
set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "") | ||
set(LLVM_ENABLE_LLD ON CACHE BOOL "") | ||
set(LLVM_ENABLE_PROJECTS | ||
lld | ||
CACHE STRING "") | ||
set(CLANG_BUILD_EXAMPLES OFF CACHE BOOL "") | ||
set(LLVM_BUILD_TESTS OFF CACHE BOOL "") | ||
set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "") | ||
set(LLVM_OPTIMIZED_TABLEGEN ON CACHE BOOL "") | ||
set(LLVM_CCACHE_BUILD ON CACHE BOOL "") | ||
set(LLVM_TARGETS_TO_BUILD | ||
RISCV CACHE STRING "") | ||
set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "") | ||
set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "") | ||
set(LLVM_BUILD_SNIPPY ON CACHE BOOL "") |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# XFAIL: * | ||
# RUN: not llvm-snippy %s --model-plugin None |& FileCheck %s | ||
|
||
include: | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# XFAIL: * | ||
# RUN: llvm-snippy %s --model-plugin None |& FileCheck %s | ||
|
||
include: | ||
|
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
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
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
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
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