Skip to content

Commit

Permalink
update publish
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 1, 2024
1 parent 10bf8ce commit 8f0b6a2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
timeout-minutes: 10
name: Build and publish Python package (${{ matrix.os }})
timeout-minutes: 10
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -49,9 +49,7 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
pip install setuptools-rust
if [ "${{ runner.os }}" == "Linux" ]; then
apt-get update
apt-get install -y unzip
PROTOC_ZIP=protoc-25.1-linux-x86_64.zip
elif [ "${{ runner.os }}" == "macOS" ]; then
Expand All @@ -61,12 +59,10 @@ jobs:
echo "Unsupported OS: ${{ runner.os }}"
exit 1
fi
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/$PROTOC_ZIP
unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
/usr/local/bin/protoc --version
CIBW_ENVIRONMENT: |
PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH"
Expand All @@ -82,7 +78,10 @@ jobs:

publish-wheels:
needs: publish-python
name: Publish Python wheels
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Download all wheels
uses: actions/download-artifact@v3
Expand All @@ -100,9 +99,9 @@ jobs:
packages-dir: final_dist/

publish-rust:
timeout-minutes: 10
name: Build and publish Rust package
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
Expand Down

0 comments on commit 8f0b6a2

Please sign in to comment.