Simplify macOs setup #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v5 | |
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@v4 | |
with: | |
name: output | |
path: output/ |