Issue #10. Update README.md #51
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
# This file is autogenerated by maturin v0.15.1 | |
# To update, run | |
# | |
# maturin generate-ci github | |
# | |
name: RocksQ Python | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
tags: | |
- '*' | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
linux: | |
strategy: | |
matrix: | |
include: | |
- docker_file: docker/Dockerfile.manylinux_2_28_ARM64 | |
name: manylinux-arm | |
arch: linux/arm64 | |
runner: ARM64 | |
- docker_file: docker/Dockerfile.manylinux_2_28_X64 | |
name: manylinux-x86 | |
arch: linux/amd64 | |
runner: X64 | |
runs-on: | |
- self-hosted | |
- ${{ matrix.runner }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build docker image | |
uses: docker/build-push-action@v6 | |
with: | |
file: ${{ matrix.docker_file }} | |
platforms: ${{ matrix.arch }} | |
tags: rocksq | |
push: false | |
load: true | |
context: . | |
- name: Copy wheels | |
run: docker run --rm -v $(pwd)/distfiles:/tmp rocksq cp -R /opt/dist /tmp | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.runner }} | |
path: distfiles/dist | |
- name: Publish to PyPI | |
if: "startsWith(github.ref, 'refs/tags/')" | |
uses: PyO3/maturin-action@v1 | |
env: | |
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
command: upload | |
args: --skip-existing distfiles/dist/* | |
windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
target: [x64] | |
python: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: ${{ matrix.target }} | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
working-directory: queue_py | |
target: ${{ matrix.target }} | |
args: --release --out dist --find-interpreter | |
sccache: 'true' | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-windows-${{ matrix.python }} | |
path: queue_py/dist | |
- name: Publish to PyPI | |
if: "startsWith(github.ref, 'refs/tags/')" | |
uses: PyO3/maturin-action@v1 | |
env: | |
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
command: upload | |
args: --skip-existing queue_py/dist/* |