Browse Source

Merge pull request #495 from DragonAura/dev

ci:  compile python
tags/v0.1.0
Timothy Liu GitHub 2 years ago
parent
commit
80c870df30
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions
  1. +2
    -0
      CAPI/cpp/proto/Services.grpc.pb.h
  2. +10
    -2
      dependency/shell/compile.sh

+ 2
- 0
CAPI/cpp/proto/Services.grpc.pb.h View File

@@ -25,6 +25,8 @@
#include <grpcpp/impl/codegen/stub_options.h> #include <grpcpp/impl/codegen/stub_options.h>
#include <grpcpp/impl/codegen/sync_stream.h> #include <grpcpp/impl/codegen/sync_stream.h>


#undef SendMessage

namespace protobuf namespace protobuf
{ {




+ 10
- 2
dependency/shell/compile.sh View File

@@ -13,8 +13,16 @@ do
flag=0 flag=0
fi fi
mv ./compile_log$i.txt $bind/compile_log$i.txt mv ./compile_log$i.txt $bind/compile_log$i.txt
elif [ ! -f "${bind}/player${i}.py" ]; then
flag=0
elif [ -f "${bind}/player${i}.py" ]; then
pushd ../python
cp -f $bind/player$i.py ./PyAPI/AI.py
python3 -m compileall ./PyAPI
if [ ! -f ./PyAPI/__pycache__/AI.cpython-39.pyc ]; then
flag=0
else
rm -rf ./PyAPI/__pycache__/AI.cpython-39.pyc
fi
popd
fi fi
let "i++" let "i++"
done done


Loading…
Cancel
Save