diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4123bf0..09dc6c4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,19 +40,15 @@ jobs: run: | python -m pip install --upgrade pip pip install cibuildwheel - if [ "${{ runner.os }}" == "Linux" ]; then - sudo apt-get install -y libudev-dev pkg-config - elif [ "${{ runner.os }}" == "macOS" ]; then - brew install openssl pkg-config - else - echo "Unsupported OS: ${{ runner.os }}" - exit 1 - fi shell: bash - name: Build package env: CIBW_SKIP: "pp* *-musllinux*" # Skip PyPy and musllinux builds + CIBW_BEFORE_ALL_LINUX: | + yum install -y libudev-devel pkgconfig + CIBW_BEFORE_ALL_MACOS: | + brew install openssl pkg-config CIBW_BEFORE_BUILD: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y source $HOME/.cargo/env