This commit is contained in:
blueloveTH 2023-10-13 01:16:02 +08:00
parent cbd6d89730
commit fcd83337a9
2 changed files with 8 additions and 2 deletions

View File

@ -103,7 +103,13 @@ jobs:
- uses: actions/checkout@v3
- name: Compile and Test
run: |
bash build.sh
mkdir build
cd build
cmake ..
cmake --build . --config Release
cp main ../
cp libpocketpy.dylib ../
cd ..
python3 scripts/run_tests.py
- name: Benchmark
run: python3 scripts/run_tests.py benchmark

View File

@ -40,7 +40,7 @@ else
LINK_FLAGS="-Wl,-rpath=."
fi
clang++ $FLAGS -o libpocketpy$LIB_EXTENSION $SRC -fPIC -shared -ldl
clang++ $FLAGS -o libpocketpy$LIB_EXTENSION $SRC -fPIC -shared
# compile main.cpp and link to libpocketpy.so
echo "> Compiling main.cpp and linking to libpocketpy$LIB_EXTENSION..."