Skip to content

Commit

Permalink
Speedup release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Jun 29, 2024
1 parent 39a7eeb commit de9578d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
release:
runs-on: [ "self-hosted", "benchmark" ]
runs-on: [ "ubuntu-latest" ]
steps:
- name: Ensure workspace ownership
run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE
Expand Down Expand Up @@ -119,8 +119,9 @@ jobs:
- name: Build and upload infinity_sdk
if: startsWith(github.ref, 'refs/tags/v')
run: |
sudo rm -f cmake-build-release/*.deb cmake-build-release/*.rpm cmake-build-release/*.gz
sed -i "s/^version = \".*\"/version = \"$(echo $RELEASE_TAG | cut -c2-)\"/" pyproject.toml
sudo docker exec infinity_build bash -c "cd /infinity/ && rm -f dist/* && /usr/local/bin/pip3.10 wheel . -v -w dist --config-settings=wheel.py-api=cp310 && /usr/local/bin/pip3.11 wheel . -v -w dist --config-settings=wheel.py-api=cp311 && /usr/local/bin/pip3.12 wheel . -v -w dist --config-settings=wheel.py-api=cp312 && auditwheel repair --plat manylinux_2_17_x86_64 dist/infinity*.whl && twine upload --repository pypi wheelhouse/infinity*.whl"
sudo docker exec infinity_build bash -c "cd /infinity/ && rm -f dist/* && /usr/local/bin/pip3.10 wheel . -v -w dist --config-settings=wheel.py-api=cp310 --config-settings=build-dir='cmake-build-release' && /usr/local/bin/pip3.11 wheel . -v -w dist --config-settings=wheel.py-api=cp311 --config-settings=build-dir='cmake-build-release' && /usr/local/bin/pip3.12 wheel . -v -w dist --config-settings=wheel.py-api=cp312 --config-settings=build-dir='cmake-build-release' && auditwheel repair --plat manylinux_2_17_x86_64 dist/infinity*.whl && twine upload --repository pypi wheelhouse/infinity*.whl"
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit de9578d

Please sign in to comment.