Skip to content

Simplify macOs setup #94

Simplify macOs setup

Simplify macOs setup #94

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-14
arch: arm64
- os: macos-13
arch: x86_64
- os: ubuntu-latest
arch: aarch64
- os: ubuntu-latest
arch: i686
- os: ubuntu-latest
arch: x86_64
- os: windows-latest
arch: AMD64
- os: windows-latest
arch: x86
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install qemu (linux)
if: matrix.os == 'ubuntu-latest'
uses: docker/setup-qemu-action@v3
- name: Build codecs
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BEFORE_BUILD: python scripts/build-codecs.py /tmp/vendor
CIBW_BEFORE_BUILD_WINDOWS: scripts\build-codecs.bat C:\cibw\vendor
CIBW_BUILD: cp38-*
CIBW_SKIP: "*musllinux*"
CIBW_TEST_COMMAND: python -c "import dummy"
run: |
pip install cibuildwheel
cibuildwheel --output-dir output
rm -f output/*.whl
shell: bash
- name: Upload codecs
uses: actions/upload-artifact@v3
with:
name: output
path: output/