[fix] cancel no follow sqlite3 open mode #159
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
name: Build on Ubuntu | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble main" | sudo tee /etc/apt/sources.list.d/llvm.list | |
echo "deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | |
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | |
echo "deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | |
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | |
echo "deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install --yes \ | |
gcc g++ cmake libgmp-dev libedit-dev libsqlite3-dev libgtest-dev \ | |
python3 python3-pip \ | |
llvm-18 llvm-18-dev llvm-18-tools clang-18 libclang-18-dev\ | |
libcurl4-openssl-dev | |
- name: Spell Check | |
uses: crate-ci/[email protected] | |
- name: Clang Format | |
run: | | |
chmod +x scripts/run-clang-format | |
scripts/run-clang-format | |
- name: Build Repo | |
run: | | |
cmake -DCMAKE_BUILD_TYPE:STRING=Release -DLINK_LLVM_DYLIB=ON -DCMAKE_C_COMPILER:STRING=/usr/bin/gcc -DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++ -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_INSTALL_PREFIX="/opt/knight" -DLLVM_BUILD_DIR="/usr/lib/llvm-18" -B build | |
cmake --build build -j16 | |
echo $(pwd)/build/bin >> $GITHUB_PATH | |
- name: Clang Tidy | |
run: | | |
chmod +x scripts/run-clang-tidy | |
scripts/run-clang-tidy -j16 | |
- name: Test Binary | |
run: | | |
knight-analyzer --help | |
- name: Unit Tests | |
run: | | |
chmod +x scripts/unittest | |
scripts/unittest run test/testcase/ | |
- name: Common Tests | |
run: | | |
build/common/knightCommonTests |