Compare commits
2
Commits
main
...
4b168c8688
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b168c8688 | ||
|
|
ad2650b0a6 |
@@ -0,0 +1,69 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pre-commit:
|
||||||
|
runs-on: ubuntu-latest-amd64
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install pre-commit
|
||||||
|
run: pipx install pre-commit
|
||||||
|
|
||||||
|
- name: Run pre-commit
|
||||||
|
run: ~/.local/bin/pre-commit run --all-files --show-diff-on-failure
|
||||||
|
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: clang-amd64
|
||||||
|
runner: ubuntu-latest-amd64
|
||||||
|
cmake_args: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
||||||
|
- name: clang-arm64
|
||||||
|
runner: ubuntu-latest-arm64
|
||||||
|
cmake_args: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
||||||
|
- name: gcc-amd64
|
||||||
|
runner: ubuntu-latest-amd64
|
||||||
|
cmake_args: -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
|
||||||
|
- name: gcc-arm64
|
||||||
|
runner: ubuntu-latest-arm64
|
||||||
|
cmake_args: -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: weaseldb
|
||||||
|
|
||||||
|
- name: Checkout weaseljson
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: weaselab/weaseljson
|
||||||
|
path: weaseljson
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y build-essential clang cmake
|
||||||
|
|
||||||
|
- name: Build and install weaseljson
|
||||||
|
run: |
|
||||||
|
cmake -S weaseljson -B weaseljson/build \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX="$(pwd)/weaseljson/install"
|
||||||
|
cmake --build weaseljson/build -j "$(nproc)"
|
||||||
|
cmake --install weaseljson/build
|
||||||
|
|
||||||
|
- name: Build weaseldb
|
||||||
|
run: |
|
||||||
|
cmake -S weaseldb -B weaseldb/build ${{ matrix.cmake_args }} \
|
||||||
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
||||||
|
-DCMAKE_PREFIX_PATH="$(pwd)/weaseljson/install"
|
||||||
|
cmake --build weaseldb/build -j "$(nproc)"
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
cd weaseldb/build
|
||||||
|
ctest --output-on-failure -j "$(nproc)" --timeout 90
|
||||||
+3
-4
@@ -80,10 +80,9 @@ FetchContent_MakeAvailable(simdutf)
|
|||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
llhttp
|
llhttp
|
||||||
URL "https://github.com/nodejs/llhttp/archive/refs/tags/release/v9.2.1.tar.gz"
|
GIT_REPOSITORY https://github.com/nodejs/llhttp.git
|
||||||
URL_HASH
|
GIT_TAG 610a87d755f6bae466cd871c2ba97574ccac5483 # release/v9.2.1
|
||||||
SHA256=3c163891446e529604b590f9ad097b2e98b5ef7e4d3ddcf1cf98b62ca668f23e
|
)
|
||||||
DOWNLOAD_EXTRACT_TIMESTAMP ON)
|
|
||||||
set(BUILD_SHARED_LIBS
|
set(BUILD_SHARED_LIBS
|
||||||
OFF
|
OFF
|
||||||
CACHE INTERNAL "")
|
CACHE INTERNAL "")
|
||||||
|
|||||||
Reference in New Issue
Block a user