Browse Source

fix: 💩 remove unix2dos

tags/0.1.0
shangfengh 2 years ago
parent
commit
28e6039bb5
2 changed files with 31 additions and 39 deletions
  1. +30
    -38
      .github/workflows/upload_COS.yml
  2. +1
    -1
      docs/CAPI接口(python).md

+ 30
- 38
.github/workflows/upload_COS.yml View File

@@ -7,7 +7,7 @@ name: "upload_COS"

on:
push:
branches: [ main, dev ,new ]
branches: [ main, dev ]

jobs:
client_build:
@@ -29,40 +29,6 @@ jobs:
- name: Pip Install paramiko
run: pip install paramiko

- name: Publish
run: |
mkdir -p ./THUAI6/win/win64
dotnet publish "./logic/Client/Client.csproj" -c Release -r win-x64 -o ./THUAI6/win/win64 --self-contained true
rm ./THUAI6/win/win64/System.*.dll

- uses: actions/upload-artifact@v2
with:
name: my-artifact
path: ./THUAI6

build_upload:
needs: client_build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup dotnet Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Pip Install paramiko
run: pip install paramiko

- uses: actions/download-artifact@v2
with:
name: my-artifact

- name: Publish
run: |
mkdir -p THUAI6/win/win64
@@ -74,6 +40,7 @@ jobs:
dotnet publish "./logic/Server/Server.csproj" -c Debug -r win-x64 -o ./THUAI6/win/win64/Debug --self-contained true
dotnet publish "./logic/Server/Server.csproj" -c Release -r linux-x64 -o ./THUAI6/linux/linux64 --self-contained true
dotnet publish "./logic/Server/Server.csproj" -c Debug -r linux-x64 -o ./THUAI6/linux/linux64/Debug --self-contained true
dotnet publish "./logic/Client/Client.csproj" -c Release -r win-x64 -o ./THUAI6/win/win64 --self-contained true

rm ./THUAI6/linux/linux64/System.*.dll
rm ./THUAI6/linux/linux64/Debug/System.*.dll
@@ -109,6 +76,34 @@ jobs:
cp -r ./CAPI/cmd/* ./THUAI6/win/
cp -r ./CAPI/shell/* ./THUAI6/linux/

- uses: actions/upload-artifact@v2
with:
name: my-artifact
path: ./THUAI6

build_upload:
needs: client_build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup dotnet Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Pip Install paramiko
run: pip install paramiko

- uses: actions/download-artifact@v2
with:
name: my-artifact

- name: Markdown to PDF and HTML
uses: BaileyJM02/markdown-to-pdf@v1.2.0
with:
@@ -118,9 +113,6 @@ jobs:
image_import: ./images
build_html: false

- name: Unix to dos
run: bash ./dependency/shell/Unix2dos.sh ./THUAI6

- name: Upload COS
uses: zkqiang/tencent-cos-action@v0.1.0
with:


+ 1
- 1
docs/CAPI接口(python).md View File

@@ -80,7 +80,7 @@
- `def GetPlayerGUIDs(self) -> List[int]`:获取所有玩家的GUID\
- `def GetFrameCount(self) -> int`:获取目前所进行的帧数\
- `def GetSelfInfo(self) -> Union[THUAI6.Student, THUAI6.Tricker]`:获取自己的信息
- `def GetFullMap(self) -> List[List[THUAI6.PlaceType]]`:返回整张地图的地形信息。
- `def GetFullMap(self) -> List[List[THUAI6.PlaceType]]`:返回整张地图的地形信息。可以写成类似`self.GetFullMap()[x][y]`,其中x为地图自上到下第几行,y为自左向右第几列,注意从0开始

### 辅助函数



Loading…
Cancel
Save