Skip to content

Commit

Permalink
chore(release): Release version 0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Oct 30, 2024
2 parents 53b5ebc + c5e181a commit 2607256
Show file tree
Hide file tree
Showing 24 changed files with 313 additions and 111 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

[tool.bumpversion]
current_version = "0.8.2"
current_version = "0.8.3"

[[tool.bumpversion.files]]
filename = "CITATION.cff"
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
open-pull-requests-limit: 10
25 changes: 25 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2.7.5
with:
key: ${{ matrix.target }}
- name: Run tests
run: cargo test --target ${{ matrix.target }}
- name: Run tests (no default features)
Expand All @@ -64,6 +68,8 @@ jobs:
with:
toolchain: stable
components: rustfmt
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2.7.5
- name: Check code formatted
run: cargo fmt -- --check

Expand All @@ -78,6 +84,8 @@ jobs:
with:
toolchain: stable
components: clippy
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2.7.5
- name: Check no lint warnings
run: cargo clippy -- -D warnings
- name: Check no lint warnings (no default features)
Expand All @@ -93,5 +101,22 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2.7.5
- name: Check no `rustdoc` lint warnings
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items

benchmark:
name: Benchmark
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2.7.5
- name: Run benchmarks
run: cargo bench
1 change: 1 addition & 0 deletions .github/workflows/SemverChecks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- "release/*"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:

jobs:
semver:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/dependabot_auto_merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2024 Shun Sakai
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

name: Dependabot auto-merge

on: pull_request_target

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
name: Dependabot auto-merge
if: github.actor == 'dependabot[bot]' && github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ on:
branches:
- "develop"
- "master"
schedule:
- cron: "0 0 * * FRI"
workflow_dispatch:

jobs:
gitlab:
name: Mirror to GitLab
if: github.actor == 'sorairolake' && github.repository_owner == 'sorairolake'
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
Expand All @@ -31,7 +33,7 @@ jobs:

codeberg:
name: Mirror to Codeberg
if: github.actor == 'sorairolake' && github.repository_owner == 'sorairolake'
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ All notable changes to this project will be documented in this file.
The format is based on https://keepachangelog.com/[Keep a Changelog], and this
project adheres to https://semver.org/[Semantic Versioning].

== {compare-url}/v0.8.2\...v0.8.3[0.8.3] - 2024-10-30

=== Added

* Add benchmarks ({pull-request-url}/121[#121])
* Implement `Default` for `ExitCode` ({pull-request-url}/126[#126])

== {compare-url}/v0.8.1\...v0.8.2[0.8.2] - 2024-09-22

=== Added
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ cff-version: 1.2.0
message: Please cite this software using these meta data.

# Version information.
date-released: 2024-09-22
version: 0.8.2
date-released: 2024-10-30
version: 0.8.3

# Project information.
abstract: The system exit codes as defined by <sysexits.h> for Rust
Expand Down
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2607256

Please sign in to comment.