|
| 1 | +# use this for testing when necessary |
| 2 | +name: Check Release Python |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + |
| 9 | +jobs: |
| 10 | + macos: |
| 11 | + runs-on: macos-latest |
| 12 | + env: |
| 13 | + CXXFLAGS: "-std=c++11 -stdlib=libc++" |
| 14 | + strategy: |
| 15 | + fail-fast: false |
| 16 | + matrix: |
| 17 | + package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] |
| 18 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + - name: Install protoc |
| 22 | + uses: arduino/setup-protoc@v1 |
| 23 | + with: |
| 24 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 25 | + version: '3.20.1' |
| 26 | + - uses: ./.github/action-common-python-release |
| 27 | + with: |
| 28 | + artifact-key: macos |
| 29 | + package-name: ${{ matrix.package-name }} |
| 30 | + python-version: ${{ matrix.python-version }} |
| 31 | + maturin-target: universal2-apple-darwin |
| 32 | + maturin-container: ghcr.io/rust-cross/manylinux_2_28-cross:aarch64 |
| 33 | + |
| 34 | + linux-x86_64: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + env: |
| 37 | + CXXFLAGS: "-std=c++11" |
| 38 | + strategy: |
| 39 | + fail-fast: false |
| 40 | + matrix: |
| 41 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 42 | + steps: |
| 43 | + - uses: actions/checkout@v4 |
| 44 | + - name: Install protoc |
| 45 | + uses: arduino/setup-protoc@v1 |
| 46 | + with: |
| 47 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 48 | + version: '3.20.1' |
| 49 | + - uses: ./.github/action-common-python-release |
| 50 | + with: |
| 51 | + artifact-key: linux-x86_64 |
| 52 | + package-name: qcs-sdk-python |
| 53 | + python-version: ${{ matrix.python-version }} |
| 54 | + maturin-target: x86_64 |
| 55 | + maturin-container: quay.io/pypa/manylinux_2_34_x86_64:latest |
| 56 | + |
| 57 | + linux-aarch64: |
| 58 | + runs-on: ubuntu-24.04-arm |
| 59 | + env: |
| 60 | + CXXFLAGS: "-std=c++11" |
| 61 | + strategy: |
| 62 | + fail-fast: false |
| 63 | + matrix: |
| 64 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 65 | + steps: |
| 66 | + - uses: actions/checkout@v4 |
| 67 | + - name: Install protoc |
| 68 | + uses: arduino/setup-protoc@v1 |
| 69 | + with: |
| 70 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 71 | + version: '3.20.1' |
| 72 | + - uses: ./.github/action-common-python-release |
| 73 | + with: |
| 74 | + artifact-key: linux-aarch64 |
| 75 | + package-name: qcs-sdk-python |
| 76 | + python-version: ${{ matrix.python-version }} |
| 77 | + maturin-target: aarch64 |
| 78 | + |
| 79 | + linux-grpc-web-x86_64: |
| 80 | + runs-on: ubuntu-latest |
| 81 | + env: |
| 82 | + CXXFLAGS: "-std=c++11" |
| 83 | + strategy: |
| 84 | + fail-fast: false |
| 85 | + matrix: |
| 86 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 87 | + steps: |
| 88 | + - uses: actions/checkout@v4 |
| 89 | + - name: Install protoc |
| 90 | + uses: arduino/setup-protoc@v1 |
| 91 | + with: |
| 92 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 93 | + version: '3.20.1' |
| 94 | + - uses: ./.github/action-common-python-release |
| 95 | + with: |
| 96 | + artifact-key: linux-grpc-web-x86_64 |
| 97 | + package-name: qcs-sdk-python-grpc-web |
| 98 | + python-version: ${{ matrix.python-version }} |
| 99 | + maturin-target: x86_64 |
| 100 | + |
| 101 | + linux-grpc-web-ppc64le: |
| 102 | + runs-on: ubuntu-latest |
| 103 | + env: |
| 104 | + CXXFLAGS: "-std=c++11" |
| 105 | + strategy: |
| 106 | + fail-fast: false |
| 107 | + matrix: |
| 108 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 109 | + steps: |
| 110 | + - uses: actions/checkout@v4 |
| 111 | + - name: Install protoc |
| 112 | + uses: arduino/setup-protoc@v1 |
| 113 | + with: |
| 114 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 115 | + version: '3.20.1' |
| 116 | + - uses: ./.github/action-common-python-release |
| 117 | + with: |
| 118 | + artifact-key: linux-grpc-web-ppc64le |
| 119 | + package-name: qcs-sdk-python-grpc-web |
| 120 | + python-version: ${{ matrix.python-version }} |
| 121 | + maturin-target: ppc64le |
| 122 | + maturin-container: ghcr.io/rust-cross/manylinux_2_28-cross:ppc64le |
| 123 | + |
| 124 | + windows: |
| 125 | + runs-on: windows-latest |
| 126 | + strategy: |
| 127 | + fail-fast: false |
| 128 | + matrix: |
| 129 | + package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] |
| 130 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 131 | + steps: |
| 132 | + - name: Enable long path support |
| 133 | + run: | |
| 134 | + reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f |
| 135 | + git config --system core.longpaths true |
| 136 | + - uses: actions/checkout@v4 |
| 137 | + - name: Install protoc |
| 138 | + uses: arduino/setup-protoc@v1 |
| 139 | + with: |
| 140 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 141 | + version: '3.20.1' |
| 142 | + - uses: ./.github/action-common-python-release |
| 143 | + with: |
| 144 | + artifact-key: windows |
| 145 | + package-name: ${{ matrix.package-name }} |
| 146 | + python-version: ${{ matrix.python-version }} |
| 147 | + python-architecture: x64 |
| 148 | + rust-target: x86_64-pc-windows-msvc |
| 149 | + |
| 150 | + sdist: |
| 151 | + runs-on: ubuntu-latest |
| 152 | + env: |
| 153 | + CXXFLAGS: "-std=c++11" |
| 154 | + strategy: |
| 155 | + fail-fast: false |
| 156 | + matrix: |
| 157 | + package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] |
| 158 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 159 | + steps: |
| 160 | + - uses: actions/checkout@v4 |
| 161 | + - name: Install protoc |
| 162 | + uses: arduino/setup-protoc@v1 |
| 163 | + with: |
| 164 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 165 | + version: '3.20.1' |
| 166 | + - uses: ./.github/action-common-python-release |
| 167 | + with: |
| 168 | + artifact-key: sdist |
| 169 | + package-name: ${{ matrix.package-name }} |
| 170 | + python-version: ${{ matrix.python-version }} |
| 171 | + maturin-command: sdist |
0 commit comments