Skip to content

Implement mpmc queue #40

Implement mpmc queue

Implement mpmc queue #40

Workflow file for this run

# This file is autogenerated by maturin v0.15.1
# To update, run
#
# maturin generate-ci github
#
name: RocksQ Docs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build RocksQ dist (no release)
uses: PyO3/maturin-action@v1
with:
working-directory: queue_py
args: --out dist
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Install RocksQ
run: pip install queue_py/dist/*.whl
- name: Build docs
run: |
cd docs
make clean html
tar \
--dereference --hard-dereference \
--directory build/html -cvf artifact.tar .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: docs/artifact.tar
if-no-files-found: error
deploy-docs:
# if: "startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
needs: build-docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1