Skip to content

Commit

Permalink
Merge pull request #30 from jofas/publish-action
Browse files Browse the repository at this point in the history
Publish action
  • Loading branch information
jofas authored Apr 22, 2023
2 parents d096d23 + 8197a9b commit 4706b4e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
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 }}

1 comment on commit 4706b4e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 4706b4e Previous: d096d23 Ratio
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.

Please sign in to comment.