Skip to content

Commit

Permalink
fix(CI): add option for generate.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisonooo committed Nov 29, 2023
1 parent 96c513c commit 66fab2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/linux-x64-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
cd /work
source /opt/conda/bin/activate
conda activate py38
apt install -y ninja-build lld
mkdir build && cd build
bash ../generate.sh
ninja -j$(nproc) && ninja install
bash ../generate.sh make
make -j$(nproc) && make install
8 changes: 7 additions & 1 deletion generate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/sh

cmake -G Ninja .. \
builder="-G Ninja"

if [ "$1" == "make" ]; then
builder=""
fi

cmake ${builder} .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
-DCMAKE_INSTALL_PREFIX=./install \
Expand Down

0 comments on commit 66fab2e

Please sign in to comment.