Skip to content

fixes for queue length and push/pop operations #29

fixes for queue length and push/pop operations

fixes for queue length and push/pop operations #29

Workflow file for this run

# 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@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up docker buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image
uses: docker/build-push-action@v4
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@v3
with:
name: wheels
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@v3
- uses: actions/setup-python@v4
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@v3
with:
name: wheels
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/*