From 196ebee8a4c60fe7fdde3d892683c2ffe27e8c5c Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Fri, 1 Nov 2024 00:26:32 -0700 Subject: [PATCH] thing --- .github/workflows/publish.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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