Skip to content

added stage

added stage #9

Workflow file for this run

name: CI Rust testing
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
run: rustup update stable && rustup default stable
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
publish:
name: Publish to crates.io
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
run: rustup update stable && rustup default stable
- name: Publish to crates.io
run: cargo publish --dry-run --verbose --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }}