Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anvlkv authored Jun 22, 2024
1 parent e1136b0 commit 7080452
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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

0 comments on commit 7080452

Please sign in to comment.