Skip to content

Search in default homebrew prefix on Apple Silicon fix #122

Search in default homebrew prefix on Apple Silicon fix

Search in default homebrew prefix on Apple Silicon fix #122

Workflow file for this run

name: pyusb
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 10
matrix:
platform: [ubuntu-latest, macos-14, macos-12, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools>=30.3.0 tox
- name: Install libusb-1.0 (Windows)
if: startsWith(matrix.platform, 'windows-')
shell: pwsh
run: |
Invoke-WebRequest -Uri https://github.com/libusb/libusb/releases/download/v1.0.24/libusb-1.0.24.7z -OutFile libusb-1.0.24.7z
7z e libusb-1.0.24.7z -oC:\Windows\System32 VS2019/MS64/dll/libusb-1.0.dll
- name: Install libusb-1.0 (macos)
if: startsWith(matrix.platform, 'macos-')
run: |
brew install libusb
- id: pyver2toxenv
run: |
python -c "import sys; print('::set-output name=toxenv::py' + sys.argv[1].replace('.', ''))" ${{ matrix.python-version }}
- name: Test with tox
run: tox -e ${{ steps.pyver2toxenv.outputs.toxenv }}