44 release :
55 types :
66 - published
7+ workflow_dispatch :
8+ inputs :
9+ run_full_matrix :
10+ description : Build all additional architectures (aarch64, universal2, etc.)
11+ type : boolean
12+ default : true
713
814concurrency :
915 group : ${{ github.workflow }}-${{ github.ref }}
@@ -147,13 +153,13 @@ jobs:
147153 - uses : docker/setup-qemu-action@v2
148154 with :
149155 platforms : linux/${{ matrix.architecture }}
150- if : github.event_name == 'release' && matrix.architecture != 'x86_64'
156+ if : ( github.event_name == 'release' || github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true') && matrix.architecture != 'x86_64'
151157 - uses : ./.github/actions/setup-rust
152158 with :
153159 version : stable
154- - run : sed ' s/%arch%/${{ matrix.architecture }}/g' .github/workflows/manylinux_build.sh | sed ' s/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/manylinux_build_script.sh
160+ - run : sed " s/%arch%/${{ matrix.architecture }}/g" .github/workflows/manylinux_build.sh | sed " s/%for_each_version%/${{ ( github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true')) && 'true' || '' }}/g" > .github/workflows/manylinux_build_script.sh
155161 - run : docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/manylinux_2_28_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/manylinux_build_script.sh
156- if : github.event_name == 'release' || matrix.architecture == 'x86_64'
162+ if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true') || matrix.architecture == 'x86_64'
157163 - uses : actions/upload-artifact@v4
158164 with :
159165 name : pyontoenv_${{ matrix.architecture }}_linux_gnu
@@ -172,13 +178,13 @@ jobs:
172178 - uses : docker/setup-qemu-action@v2
173179 with :
174180 platforms : linux/${{ matrix.architecture }}
175- if : github.event_name == 'release' && matrix.architecture != 'x86_64'
181+ if : ( github.event_name == 'release' || github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true') && matrix.architecture != 'x86_64'
176182 - uses : ./.github/actions/setup-rust
177183 with :
178184 version : stable
179- - run : sed ' s/%arch%/${{ matrix.architecture }}/g' .github/workflows/musllinux_build.sh | sed ' s/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/musllinux_build_script.sh
185+ - run : sed " s/%arch%/${{ matrix.architecture }}/g" .github/workflows/musllinux_build.sh | sed " s/%for_each_version%/${{ ( github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true')) && 'true' || '' }}/g" > .github/workflows/musllinux_build_script.sh
180186 - run : docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/musllinux_1_2_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/musllinux_build_script.sh
181- if : github.event_name == 'release' || matrix.architecture == 'x86_64'
187+ if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true') || matrix.architecture == 'x86_64'
182188 - run : find .
183189 - uses : actions/upload-artifact@v4
184190 with :
@@ -217,10 +223,10 @@ jobs:
217223 working-directory : ./python
218224 - run : maturin build --release --target x86_64-apple-darwin --features abi3
219225 working-directory : ./python
220- if : github.event_name == 'release'
226+ if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true')
221227 - run : maturin build --release --target aarch64-apple-darwin --features abi3
222228 working-directory : ./python
223- if : github.event_name == 'release'
229+ if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_full_matrix == 'true')
224230 - uses : actions/upload-artifact@v4
225231 with :
226232 name : pyontoenv_macos
0 commit comments