build(cmake)!: move CMakeLists.txt to the source root
This commit is contained in:
parent
5528cfee17
commit
d1160cb820
5 changed files with 15 additions and 15 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -175,7 +175,7 @@ jobs:
|
|||
if: ${{ matrix.platform == 'windows-x64' }}
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
cmake -G Ninja -S lib -B build/static \
|
||||
cmake -G Ninja -S . -B build/static \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
|
||||
|
|
@ -184,7 +184,7 @@ jobs:
|
|||
cmake --build build/static
|
||||
rm -rf build/static
|
||||
|
||||
cmake -G Ninja -S lib -B build/shared \
|
||||
cmake -G Ninja -S . -B build/shared \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
|
||||
|
|
@ -225,14 +225,14 @@ jobs:
|
|||
- name: Build C library (CMake)
|
||||
if: ${{ !matrix.use-cross }}
|
||||
run: |
|
||||
cmake -S lib -B build/static \
|
||||
cmake -S . -B build/static \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
|
||||
-DTREE_SITTER_FEATURE_WASM=$WASM
|
||||
cmake --build build/static --verbose
|
||||
|
||||
cmake -S lib -B build/shared \
|
||||
cmake -S . -B build/shared \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
|
||||
|
|
|
|||
2
.github/workflows/wasm_exports.yml
vendored
2
.github/workflows/wasm_exports.yml
vendored
|
|
@ -11,7 +11,7 @@ on:
|
|||
paths:
|
||||
- lib/include/tree_sitter/api.h
|
||||
- lib/binding_rust/bindings.rs
|
||||
- lib/CMakeLists.txt
|
||||
- CMakeLists.txt
|
||||
|
||||
jobs:
|
||||
check-wasm-exports:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue