mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
add linux build
Update build_linux.sh
This commit is contained in:
parent
1f3b52e9ac
commit
ec7a7f6578
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -52,11 +52,13 @@ jobs:
|
||||
- name: Compiling
|
||||
run: |
|
||||
bash build_cpp.sh
|
||||
bash build_linux.sh
|
||||
python3 scripts/run_tests.py
|
||||
./pocketpy tests/1.py
|
||||
./pocketpy tests/2.py
|
||||
mkdir -p output/linux/x86_64
|
||||
mv pocketpy output/linux/x86_64
|
||||
mv pocketpy.so output/linux/x86_64
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: output
|
||||
|
3
build_linux.sh
Normal file
3
build_linux.sh
Normal file
@ -0,0 +1,3 @@
|
||||
echo '#include "pocketpy.h"' > src/tmp.cpp
|
||||
g++ -fPIC -shared -o pocketpy.so src/tmp.cpp --std=c++17 -O2 -Wall -Wno-sign-compare -Wno-unused-variable -fno-rtti
|
||||
rm src/tmp.cpp
|
@ -1,4 +1,4 @@
|
||||
g++ -o pocketpy src/main.cpp --std=c++17 -pg -O1 -pthread -fno-rtti
|
||||
g++ -o pocketpy src/main.cpp --std=c++17 -pg -O1 -fno-rtti
|
||||
|
||||
./pocketpy tests/1.py
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user