-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
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 | ||
|