fix: wheel building for linux, macos #9
Workflow file for this run
This file contains hidden or 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
| # use this for testing when necessary | |
| name: Check Release Python | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| macos: | |
| runs-on: macos-latest | |
| env: | |
| CXXFLAGS: "-std=c++11 -stdlib=libc++" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] | |
| package-name: [qcs-sdk-python] | |
| # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: '3.20.1' | |
| - uses: ./.github/action-common-python-release | |
| with: | |
| artifact-key: macos | |
| package-name: ${{ matrix.package-name }} | |
| python-version: ${{ matrix.python-version }} | |
| maturin-target: universal2-apple-darwin | |
| maturin-container: ghcr.io/rust-cross/manylinux_2_28-cross:aarch64 | |
| linux-x86_64: | |
| runs-on: ubuntu-latest | |
| env: | |
| CXXFLAGS: "-std=c++11" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: '3.20.1' | |
| - uses: ./.github/action-common-python-release | |
| with: | |
| artifact-key: linux-x86_64 | |
| package-name: qcs-sdk-python | |
| python-version: ${{ matrix.python-version }} | |
| maturin-target: x86_64 | |
| maturin-container: quay.io/pypa/manylinux_2_28_x86_64:latest | |
| linux-aarch64: | |
| runs-on: ubuntu-24.04-arm | |
| env: | |
| CXXFLAGS: "-std=c++11" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: '3.20.1' | |
| - uses: ./.github/action-common-python-release | |
| with: | |
| artifact-key: linux-aarch64 | |
| package-name: qcs-sdk-python | |
| python-version: ${{ matrix.python-version }} | |
| maturin-target: aarch64 | |
| linux-grpc-web-x86_64: | |
| runs-on: ubuntu-latest | |
| env: | |
| CXXFLAGS: "-std=c++11" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: '3.20.1' | |
| - uses: ./.github/action-common-python-release | |
| with: | |
| artifact-key: linux-grpc-web-x86_64 | |
| package-name: qcs-sdk-python-grpc-web | |
| python-version: ${{ matrix.python-version }} | |
| maturin-target: x86_64 | |
| linux-grpc-web-ppc64le: | |
| runs-on: ubuntu-latest | |
| env: | |
| CXXFLAGS: "-std=c++11" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: '3.20.1' | |
| - uses: ./.github/action-common-python-release | |
| with: | |
| artifact-key: linux-grpc-web-ppc64le | |
| package-name: qcs-sdk-python-grpc-web | |
| python-version: ${{ matrix.python-version }} | |
| maturin-target: ppc64le | |
| maturin-container: ghcr.io/rust-cross/manylinux_2_28-cross:ppc64le | |
| windows: | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] | |
| package-name: [qcs-sdk-python] | |
| # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| python-version: ["3.9"] | |
| steps: | |
| - name: Enable long path support | |
| run: | | |
| reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f | |
| git config --system core.longpaths true | |
| - uses: actions/checkout@v4 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: '3.20.1' | |
| - uses: ./.github/action-common-python-release | |
| with: | |
| artifact-key: windows | |
| package-name: ${{ matrix.package-name }} | |
| python-version: ${{ matrix.python-version }} | |
| python-architecture: x64 | |
| rust-target: x86_64-pc-windows-msvc | |
| sdist: | |
| runs-on: ubuntu-latest | |
| env: | |
| CXXFLAGS: "-std=c++11" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] | |
| package-name: [qcs-sdk-python] | |
| # python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: '3.20.1' | |
| - uses: ./.github/action-common-python-release | |
| with: | |
| artifact-key: sdist | |
| package-name: ${{ matrix.package-name }} | |
| python-version: ${{ matrix.python-version }} | |
| maturin-command: sdist |