Skip to content

Commit

Permalink
fix: 完善构建安装逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
liufang-robot committed Jun 16, 2024
1 parent a7b9779 commit eb6664f
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux_cpp_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_dotnet_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows_cpp_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/windows_dotnet_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 28 additions & 0 deletions .github/workflows/windows_python_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit eb6664f

Please sign in to comment.