Skip to content

Create rust.yml

Create rust.yml #1

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: publish crates
# You may pin to the exact commit or the version.
# uses: katyo/publish-crates@c9f6fdb4620c98d491ffaa6e563cb87388bd6ece
uses: katyo/publish-crates@v2
# with:
# # Github API token
# token: # optional, default is ${{ github.token }}
# # Path to Rust crate or workspace
# path: # optional, default is .
# # Extra arguments for cargo publish
# args: # optional, default is
# # Cargo registry token
# registry-token: # optional, default is
# # Skip execution cargo publish
# dry-run: # optional, default is false
# # Check repository consistency
# check-repo: # optional, default is true
# # Extra post publish delay (milliseconds)
# publish-delay: # optional, default is 0
# # Disable cargo publish validation and cyclic dependency checks
# no-verify: # optional, default is false
# # Exit the workflow gracefully if package does not have a new version to publish
# ignore-unpublished-changes: # optional, default is false