mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
cbd6d89730
commit
fcd83337a9
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@ -103,7 +103,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Compile and Test
|
- name: Compile and Test
|
||||||
run: |
|
run: |
|
||||||
bash build.sh
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
cmake --build . --config Release
|
||||||
|
cp main ../
|
||||||
|
cp libpocketpy.dylib ../
|
||||||
|
cd ..
|
||||||
python3 scripts/run_tests.py
|
python3 scripts/run_tests.py
|
||||||
- name: Benchmark
|
- name: Benchmark
|
||||||
run: python3 scripts/run_tests.py benchmark
|
run: python3 scripts/run_tests.py benchmark
|
||||||
|
2
build.sh
2
build.sh
@ -40,7 +40,7 @@ else
|
|||||||
LINK_FLAGS="-Wl,-rpath=."
|
LINK_FLAGS="-Wl,-rpath=."
|
||||||
fi
|
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
|
# compile main.cpp and link to libpocketpy.so
|
||||||
echo "> Compiling main.cpp and linking to libpocketpy$LIB_EXTENSION..."
|
echo "> Compiling main.cpp and linking to libpocketpy$LIB_EXTENSION..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user