服务端进一步优化 (#436) #41
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: Run test using ctest | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
- name: Install dev packages | |
run: | | |
sudo apt-get install -y swig cmake make gcc g++ | |
sudo apt-get install -y liblua5.4-dev libsqlite3-dev libreadline-dev libssl-dev libgit2-dev | |
sudo apt-get install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools | |
- name: Install freekill-core | |
run: | | |
git clone https://github.com/Qsgs-Fans/freekill-core.git packages/freekill-core | |
- name: Build | |
run: | | |
mkdir build && cd build | |
cp -r /usr/include/lua5.4/* ../include | |
cmake .. -DFK_SERVER_ONLY= -DFK_TESTS= | |
make | |
cd .. | |
- name: Run ctest | |
run: | | |
cd build | |
if ! ctest -VV; then exit 1; fi |