From 8f0b6a2c5c16a163e6598701a0f548da0e0d2ecf Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Thu, 31 Oct 2024 23:30:47 -0700 Subject: [PATCH] update publish --- .github/workflows/publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 90d0085..b2ce127 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -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 @@ -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" @@ -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 @@ -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