Skip to content
Snippets Groups Projects
Select Git revision
  • 31aab51ffa90cbca65faf1134e40ea0172bd0a15
  • main default
  • lut-aarch64
  • v0.10.0
  • v0.9.1
  • v0.9.0-post2
  • v0.9.0-post1
  • v0.9.0
  • v0.8.0
  • v0.7.3
  • v0.7.2
  • v0.7.1
  • v0.7.0
  • v0.6.0
  • v0.5.1
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.0
  • v0.1.1
  • v0.1.0
21 results

python.yml

Blame
  • python.yml 8.39 KiB
    name: Python
    on:
      - push
      - pull_request
    
    jobs:
    
      wheel-linux-aarch64:
        name: Build Linux wheels (Aarch64)
        runs-on: ubuntu-22.04
        if: "startsWith(github.ref, 'refs/tags/v')"
        strategy:
          matrix:
            python-tag:
            - cp37-manylinux_aarch64
            - cp38-manylinux_aarch64
            - cp39-manylinux_aarch64
            - cp310-manylinux_aarch64
            - cp311-manylinux_aarch64
            - cp312-manylinux_aarch64
            - pp37-manylinux_aarch64
            - pp38-manylinux_aarch64
            - pp39-manylinux_aarch64
            - pp310-manylinux_aarch64
        steps:
        - uses: actions/checkout@v3
        - name: Set up QEMU
          id: qemu
          uses: docker/setup-qemu-action@v2
          with:
            platforms: all
        - name: Build manylinux wheels
          uses: pypa/cibuildwheel@v2.16.4
          env:
            CIBW_ARCHS: aarch64
            CIBW_BUILD: ${{ matrix.python-tag }}
            CIBW_BEFORE_ALL: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y"
            CIBW_BEFORE_BUILD: "pip install setuptools-rust"
            CIBW_BUILD_VERBOSITY: 2
            CIBW_ENVIRONMENT: CARGO_NET_GIT_FETCH_WITH_CLI=true
            CIBW_TEST_COMMAND: python -m unittest lightmotif.tests
          with:
            output-dir: dist
        - uses: actions/upload-artifact@v3
          with:
            name: wheels
            path: dist/*
    
      wheel-linux-x86_64:
        name: Build Linux wheels (x86-64)
        runs-on: ubuntu-22.04
        strategy:
          matrix:
            python-tag:
            - cp37-manylinux_x86_64
            - cp38-manylinux_x86_64
            - cp39-manylinux_x86_64
            - cp310-manylinux_x86_64
            - cp311-manylinux_x86_64
            - cp312-manylinux_x86_64
            - pp37-manylinux_x86_64
            - pp38-manylinux_x86_64
            - pp39-manylinux_x86_64
            - pp310-manylinux_x86_64
        steps:
        - uses: actions/checkout@v3
        - uses: dtolnay/rust-toolchain@stable
        - name: Build manylinux wheels
          uses: pypa/cibuildwheel@v2.16.4
          env: