|
|
@@ -7,7 +7,7 @@ name: "upload_COS" |
|
|
|
|
|
|
|
|
on: |
|
|
on: |
|
|
push: |
|
|
push: |
|
|
branches: [ main, dev ,new ] |
|
|
|
|
|
|
|
|
branches: [ main, dev ] |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
client_build: |
|
|
client_build: |
|
|
@@ -29,40 +29,6 @@ jobs: |
|
|
- name: Pip Install paramiko |
|
|
- name: Pip Install paramiko |
|
|
run: 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 |
|
|
- name: Publish |
|
|
run: | |
|
|
run: | |
|
|
mkdir -p THUAI6/win/win64 |
|
|
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 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 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/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/System.*.dll |
|
|
rm ./THUAI6/linux/linux64/Debug/System.*.dll |
|
|
rm ./THUAI6/linux/linux64/Debug/System.*.dll |
|
|
@@ -109,6 +76,34 @@ jobs: |
|
|
cp -r ./CAPI/cmd/* ./THUAI6/win/ |
|
|
cp -r ./CAPI/cmd/* ./THUAI6/win/ |
|
|
cp -r ./CAPI/shell/* ./THUAI6/linux/ |
|
|
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 |
|
|
- name: Markdown to PDF and HTML |
|
|
uses: BaileyJM02/markdown-to-pdf@v1.2.0 |
|
|
uses: BaileyJM02/markdown-to-pdf@v1.2.0 |
|
|
with: |
|
|
with: |
|
|
@@ -118,9 +113,6 @@ jobs: |
|
|
image_import: ./images |
|
|
image_import: ./images |
|
|
build_html: false |
|
|
build_html: false |
|
|
|
|
|
|
|
|
- name: Unix to dos |
|
|
|
|
|
run: bash ./dependency/shell/Unix2dos.sh ./THUAI6 |
|
|
|
|
|
|
|
|
|
|
|
- name: Upload COS |
|
|
- name: Upload COS |
|
|
uses: zkqiang/tencent-cos-action@v0.1.0 |
|
|
uses: zkqiang/tencent-cos-action@v0.1.0 |
|
|
with: |
|
|
with: |
|
|
|