Release #3
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
name: Release | |
on: | |
release: | |
types: [ created ] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Publish to crates.io | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 12 | |
# run workflow only on numaproj/numaflow-rs repository | |
if: ${{ github.repository }} == "numaproj/numaflow-rs" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
cache: false | |
- name: Install dependencies | |
run: sudo apt-get install -y protobuf-compiler | |
- name: Code Generation | |
run: make codegen | |
- name: Ensure generated code is checked in | |
run: git diff --exit-code | |
- name: Lint | |
run: make lint | |
- name: Run tests | |
run: make test | |
- name: Documentation generation | |
run: RUSTFLAGS="-D warnings" cargo doc | |
# To view the list of files included in the package: cargo package -p numaflow --list | |
- name: Dry run Cargo Publish | |
run: CARGO_REGISTRY_TOKEN=${{ secrets.CARGO_PUBLISH }} cargo publish -p numaflow |