From eb6664f660197f81bb7fd2293c146fbddd38a205 Mon Sep 17 00:00:00 2001 From: liufang Date: Sun, 16 Jun 2024 22:23:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linux_cpp_release.yml | 2 +- .github/workflows/linux_dotnet_release.yml | 2 +- .github/workflows/release.yml | 17 +++++++----- .github/workflows/windows_cpp_release.yml | 2 +- .github/workflows/windows_dotnet_release.yml | 13 ++++++--- .github/workflows/windows_python_release.yml | 28 ++++++++++++++++++++ 6 files changed, 51 insertions(+), 13 deletions(-) diff --git a/.github/workflows/linux_cpp_release.yml b/.github/workflows/linux_cpp_release.yml index ce54d4a..25761dd 100644 --- a/.github/workflows/linux_cpp_release.yml +++ b/.github/workflows/linux_cpp_release.yml @@ -62,7 +62,7 @@ jobs: cmake --build build cd build && cpack && cd .. - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 id: artifact with: name: lebai-linux-x64-deb diff --git a/.github/workflows/linux_dotnet_release.yml b/.github/workflows/linux_dotnet_release.yml index 68a82fa..b663a2e 100644 --- a/.github/workflows/linux_dotnet_release.yml +++ b/.github/workflows/linux_dotnet_release.yml @@ -38,7 +38,7 @@ jobs: dotnet nuget push lebai.runtime.linux-x64.1.*.*.nupkg -k ${{ secrets.LEBAI_NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate dotnet nuget push lebai.1.*.*.nupkg -k ${{ secrets.LEBAI_NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: Upload artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 id: artifact with: name: lebai-linux-x64-nupkg diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6aa7e44..fef3685 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,13 +39,16 @@ jobs: uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - name: lebai-linux-x64-deb - - uses: actions/download-artifact@v4 - with: - name: lebai-linux-x64-nupkg - - uses: actions/download-artifact@v4 - with: - name: lebai-linux-x64-whl + name: + - lebai-linux-x64-deb + - lebai-linux-x64-nupkg + - lebai-linux-x64-whl + - lebai-win-x64-exe + - lebai-win-x64-nupkg + - lebai-win-x64-38-whl + - lebai-win-x64-39-whl + - lebai-win-x64-310-whl + - lebai-win-x64-311-whl - name: Display structure of downloaded files run: ls -l - name: Extract Project Version diff --git a/.github/workflows/windows_cpp_release.yml b/.github/workflows/windows_cpp_release.yml index 3c05fcb..d525418 100644 --- a/.github/workflows/windows_cpp_release.yml +++ b/.github/workflows/windows_cpp_release.yml @@ -28,7 +28,7 @@ jobs: - name: Pack run: cd build && cpack -C Release && cd .. - name: Upload nsis package - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 id: artifact with: name: lebai-win-x64-exe diff --git a/.github/workflows/windows_dotnet_release.yml b/.github/workflows/windows_dotnet_release.yml index 7445bb8..a7bed6c 100644 --- a/.github/workflows/windows_dotnet_release.yml +++ b/.github/workflows/windows_dotnet_release.yml @@ -21,13 +21,20 @@ jobs: with: dotnet-version: 6.0.x - - name: configure + - name: Configure run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DBUILD_DOTNET=ON -DBUILD_DOCUMENTATION=OFF - - name: build + - name: Build run: cmake --build build - - name: upload pacakges + - name: Upload pacakges run: cd ./build/dotnet/packages; dotnet nuget push lebai.runtime.win-x64.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json; + - name: Upload package + uses: actions/upload-artifact@v3 + id: artifact + with: + name: lebai-win-x64-nupkg + path: | + build/dotnet/packages/*.nupkg \ No newline at end of file diff --git a/.github/workflows/windows_python_release.yml b/.github/workflows/windows_python_release.yml index f2d02b9..33f3950 100644 --- a/.github/workflows/windows_python_release.yml +++ b/.github/workflows/windows_python_release.yml @@ -33,6 +33,13 @@ jobs: run: cmake --build build --config release - name: Upload Pypi run: twine upload --skip-existing -u __token__ -p ${{ secrets.PYLEBAI }} build/python/dist/*.whl + - name: Upload packages + uses: actions/upload-artifact@v3 + id: artifact + with: + name: lebai-win-x64-38-whl + path: | + build/dotnet/packages/*.whl windows_cp39_release: runs-on: windows-latest steps: @@ -52,6 +59,13 @@ jobs: run: cmake --build build --config release - name: Upload Pypi run: twine upload --skip-existing -u __token__ -p ${{ secrets.PYLEBAI }} build/python/dist/*.whl + - name: Upload packages + uses: actions/upload-artifact@v3 + id: artifact + with: + name: lebai-win-x64-39-whl + path: | + build/dotnet/packages/*.whl windows_cp310_release: runs-on: windows-latest steps: @@ -71,6 +85,13 @@ jobs: run: cmake --build build --config release - name: Upload Pypi run: twine upload --skip-existing -u __token__ -p ${{ secrets.PYLEBAI }} build/python/dist/*.whl + - name: Upload packages + uses: actions/upload-artifact@v3 + id: artifact + with: + name: lebai-win-x64-310-whl + path: | + build/dotnet/packages/*.whl windows_cp311_release: runs-on: windows-latest steps: @@ -90,6 +111,13 @@ jobs: run: cmake --build build --config release - name: Upload Pypi run: twine upload --skip-existing --verbose -u __token__ -p ${{ secrets.PYLEBAI }} build/python/dist/*.whl + - name: Upload packages + uses: actions/upload-artifact@v3 + id: artifact + with: + name: lebai-win-x64-311-whl + path: | + build/dotnet/packages/*.whl # windows_cp312_release: # runs-on: windows-latest # steps: