Skip to content

Commit

Permalink
Merge pull request #85 from liufang-robot/master
Browse files Browse the repository at this point in the history
fix: 完善构建安装逻辑
  • Loading branch information
liufang-robot authored Jun 16, 2024
2 parents db3834c + bea86e1 commit 5ffbf59
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 58 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 @@ -48,7 +48,7 @@ jobs:
uses: actions/configure-pages@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v4
with:
# Upload entire repository
path: './build/html'
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/linux_dotnet_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,18 @@ jobs:
- name: Check dotnet
run: dotnet --info

- name: configure
- name: Configure
run: cmake -S. -Bbuild -DBUILD_DOTNET=ON

- name: build
run: cmake --build build
- name: Build
run: cmake --build build

- name: upload pacakges
run:
cd ./build/dotnet/packages;
dotnet nuget push lebai.runtime.linux-x64.1.*.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json;
dotnet nuget push lebai.1.*.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json;

- name: Upload artifact
- name: Upload pacakges
run: |
cd ./build/dotnet/packages
dotnet nuget push lebai.runtime.linux-x64.1.*.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
dotnet nuget push lebai.1.*.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
- name: Upload artifacts
uses: actions/upload-artifact@v4
id: artifact
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_python_aarch64_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Linux python aarch64 build
run-name: ${{ github.actor }} Linux python aarch64 build
on:
workflow_dispatch:
pull_request:
# pull_request:
jobs:
linux_python_aarch64_build:
runs-on: [self-hosted, Linux, ARM64]
Expand Down
90 changes: 45 additions & 45 deletions .github/workflows/linux_python_aarch64_release.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: Linux python aarch64 release
run-name: ${{ github.actor }} Linux python aarch64 release
on:
workflow_dispatch:
push:
tags:
- v1.*.*
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
pull-requests: read

jobs:
linux_python_aarch64_build_and_release:
runs-on: [self-hosted, Linux, ARM64]
container: quay.io/pypa/manylinux2014_aarch64
steps:
- name: Checkout
uses: actions/checkout@v1
- run: ls /opt/python/
- run: for PYBIN in /opt/python/*/bin;do "${PYBIN}/pip" install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt; done;
- run: /opt/python/cp310-cp310/bin/pip install -i https://mirrors.aliyun.com/pypi/simple/ twine==2.0 urllib3==1.24. markdown
- name: configure
run: cmake -S. -Bbuild -DBUILD_TESTING=OFF -DBUILD_PYTHON=ON
- name: build
run: cmake --build build
- name: create-whl-dir
run: mkdir -p whl
- name: build with python
run: for PY in /opt/python/*;do
rm -rf build;
cmake -S. -Bbuild -DBUILD_TESTING=OFF -DBUILD_PYTHON=ON -DPYTHONPATH=${PY};
cmake --build build;
cp build/python/dist/*.whl whl/;
done;

- name: repair
run: for PYWHL in whl/*.whl;do
auditwheel repair ${PYWHL};
done;

- name: upload Pypi
run: /opt/python/cp310-cp310/bin/twine upload --skip-existing -u __token__ -p ${{ secrets.PYLEBAI }} wheelhouse/*.whl
name: Linux python aarch64 release
run-name: ${{ github.actor }} Linux python aarch64 release
on:
workflow_dispatch:
# push:
# tags:
# - v1.*.*
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
pull-requests: read

jobs:
linux_python_aarch64_build_and_release:
runs-on: [self-hosted, Linux, ARM64]
container: quay.io/pypa/manylinux2014_aarch64
steps:
- name: Checkout
uses: actions/checkout@v1
- run: ls /opt/python/
- run: for PYBIN in /opt/python/*/bin;do "${PYBIN}/pip" install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt; done;
- run: /opt/python/cp310-cp310/bin/pip install -i https://mirrors.aliyun.com/pypi/simple/ twine==2.0 urllib3==1.24. markdown
- name: configure
run: cmake -S. -Bbuild -DBUILD_TESTING=OFF -DBUILD_PYTHON=ON
- name: build
run: cmake --build build
- name: create-whl-dir
run: mkdir -p whl
- name: build with python
run: for PY in /opt/python/*;do
rm -rf build;
cmake -S. -Bbuild -DBUILD_TESTING=OFF -DBUILD_PYTHON=ON -DPYTHONPATH=${PY};
cmake --build build;
cp build/python/dist/*.whl whl/;
done;

- name: repair
run: for PYWHL in whl/*.whl;do
auditwheel repair ${PYWHL};
done;

- name: upload Pypi
run: /opt/python/cp310-cp310/bin/twine upload --skip-existing -u __token__ -p ${{ secrets.PYLEBAI }} wheelhouse/*.whl
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ jobs:
allowUpdates: true
artifacts: |
*.exe,
*.deb
*.deb,
*.nupkg,
*.whl

0 comments on commit 5ffbf59

Please sign in to comment.