From ac16567a3a2edff253151862c8e4ee098143ba3b Mon Sep 17 00:00:00 2001 From: DragonAura Date: Mon, 1 May 2023 19:59:54 +0800 Subject: [PATCH 1/3] ci: :sparkles: compile python --- dependency/shell/compile.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dependency/shell/compile.sh b/dependency/shell/compile.sh index 382cd85..079aa91 100644 --- a/dependency/shell/compile.sh +++ b/dependency/shell/compile.sh @@ -13,8 +13,13 @@ do flag=0 fi 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 + cp -f $bind/player$i.py ../python/PyAPI/AI.py + python3 -m compileall ../python/PyAPI + mv ../python/PyAPI/__pycache__/AI.cpython-39.pyc $bind/__pycache__/AI$i.cpython-39.pyc + if [ $? -ne 0 ]; then + flag=0 + fi fi let "i++" done From cc0f2c812654cb64f01c21a8bd361d787528ac4b Mon Sep 17 00:00:00 2001 From: DragonAura Date: Mon, 1 May 2023 20:12:13 +0800 Subject: [PATCH 2/3] ci: :art: change compile.sh --- dependency/shell/compile.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dependency/shell/compile.sh b/dependency/shell/compile.sh index 079aa91..0ee08b8 100644 --- a/dependency/shell/compile.sh +++ b/dependency/shell/compile.sh @@ -14,12 +14,15 @@ do fi mv ./compile_log$i.txt $bind/compile_log$i.txt elif [ -f "${bind}/player${i}.py" ]; then - cp -f $bind/player$i.py ../python/PyAPI/AI.py - python3 -m compileall ../python/PyAPI - mv ../python/PyAPI/__pycache__/AI.cpython-39.pyc $bind/__pycache__/AI$i.cpython-39.pyc - if [ $? -ne 0 ]; 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 let "i++" done From b4a28bd78715d31841c8b4859a1fb66a591293f1 Mon Sep 17 00:00:00 2001 From: DragonAura <32223554+DragonAura@users.noreply.github.com> Date: Mon, 1 May 2023 21:35:20 +0800 Subject: [PATCH 3/3] Update Services.grpc.pb.h --- CAPI/cpp/proto/Services.grpc.pb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CAPI/cpp/proto/Services.grpc.pb.h b/CAPI/cpp/proto/Services.grpc.pb.h index 7cf6d74..e99d5cc 100644 --- a/CAPI/cpp/proto/Services.grpc.pb.h +++ b/CAPI/cpp/proto/Services.grpc.pb.h @@ -25,6 +25,8 @@ #include #include +#undef SendMessage + namespace protobuf {