-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from jofas/publish-action
Publish action
- Loading branch information
Showing
1 changed file
with
30 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,30 @@ | ||
name: Publish | ||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
permissions: | ||
contents: read | ||
jobs: | ||
Publish: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rust:latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Load cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: publish | ||
- name: Install toml-cli | ||
run: cargo install toml-cli | ||
- name: Extract Cargo.toml Version | ||
run: echo "VERSION=$(toml get -r Cargo.toml package.version)" >> "$GITHUB_ENV" | ||
- name: Check Version | ||
run: | | ||
[ "${{ format('v{0}', env.CARGO_VERSION) }}" == "${{ github.ref_name }}" ] | ||
- name: Publish | ||
run: cargo publish | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
4706b4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
map allocation
172039780
ns/iter (± 98835
)175365644
ns/iter (± 98710
)0.98
set allocation
210537884
ns/iter (± 62674
)214307980
ns/iter (± 48499
)0.98
vec_no_clone allocation
880696270
ns/iter (± 19412445
)837450588
ns/iter (± 8514030
)1.05
This comment was automatically generated by workflow using github-action-benchmark.