Skip to content

Commit

Permalink
chore(release): Release version 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Nov 8, 2024
2 parents 612e8fe + 0d66787 commit b61cf9b
Show file tree
Hide file tree
Showing 46 changed files with 259 additions and 196 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

[tool.bumpversion]
current_version = "0.10.1"
current_version = "0.10.2"

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

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
open-pull-requests-limit: 10
68 changes: 57 additions & 11 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,52 @@ on:
- cron: "0 0 * * 0"

jobs:
check:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- aarch64-apple-darwin
- x86_64-pc-windows-msvc
toolchain:
- 1.67.0 # MSRV
- stable
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-24.04
- target: aarch64-apple-darwin
os: macos-14
- target: x86_64-pc-windows-msvc
os: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Cache build artifacts
uses: Swatinem/[email protected]
with:
key: ${{ matrix.target }}
- name: Check a package
run: cargo check --target ${{ matrix.target }}
- name: Check a package (all features)
run: cargo check --target ${{ matrix.target }} --all-features
- name: Check a package (no default features)
run: cargo check --target ${{ matrix.target }} --no-default-features
- name: Check a package (`serde-human-readable` feature)
run: cargo check --target ${{ matrix.target }} -F serde-human-readable
- name: Check a package (`large-dates` and `serde-human-readable` features)
run: cargo check --target ${{ matrix.target }} -F large-dates,serde-human-readable
- name: Check a package (`serde-human-readable` feature with no default features)
run: cargo check --target ${{ matrix.target }} --no-default-features -F serde-human-readable
- name: Check a package (`large-dates` and `serde-human-readable` features with no default features)
run: cargo check --target ${{ matrix.target }} --no-default-features -F large-dates,serde-human-readable

test:
name: Test
runs-on: ${{ matrix.os }}
Expand All @@ -24,11 +70,11 @@ jobs:
- aarch64-apple-darwin
- x86_64-pc-windows-msvc
toolchain:
- 1.74.0 # MSRV
- 1.74.0
- stable
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
os: ubuntu-24.04
- target: aarch64-apple-darwin
os: macos-14
- target: x86_64-pc-windows-msvc
Expand All @@ -42,7 +88,7 @@ jobs:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Cache build artifacts
uses: Swatinem/[email protected].3
uses: Swatinem/[email protected].5
with:
key: ${{ matrix.target }}
- name: Run tests
Expand All @@ -62,7 +108,7 @@ jobs:

rustfmt:
name: Rustfmt
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -72,13 +118,13 @@ jobs:
toolchain: stable
components: rustfmt
- name: Cache build artifacts
uses: Swatinem/[email protected].3
uses: Swatinem/[email protected].5
- name: Check code formatted
run: cargo fmt -- --check

clippy:
name: Clippy
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -88,7 +134,7 @@ jobs:
toolchain: stable
components: clippy
- name: Cache build artifacts
uses: Swatinem/[email protected].3
uses: Swatinem/[email protected].5
- name: Check no lint warnings
run: cargo clippy -- -D warnings
- name: Check no lint warnings (all features)
Expand All @@ -98,7 +144,7 @@ jobs:

doc:
name: Documentation
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -107,13 +153,13 @@ jobs:
with:
toolchain: stable
- name: Cache build artifacts
uses: Swatinem/[email protected].3
uses: Swatinem/[email protected].5
- name: Check no `rustdoc` lint warnings
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items --all-features

benchmark:
name: Benchmark
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -122,6 +168,6 @@ jobs:
with:
toolchain: nightly
- name: Cache build artifacts
uses: Swatinem/[email protected].3
uses: Swatinem/[email protected].5
- name: Run benchmarks
run: cargo bench --all-features
2 changes: 1 addition & 1 deletion .github/workflows/REUSE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
reuse:
name: REUSE
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/SemverChecks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
semver:
name: Check Semantic Versioning
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
jobs:
validation:
name: Validate
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
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-24.04
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
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 }}
10 changes: 6 additions & 4 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ 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'
runs-on: ubuntu-22.04
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -31,8 +33,8 @@ jobs:

codeberg:
name: Mirror to Codeberg
if: github.actor == 'sorairolake' && github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ 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.10.1\...v0.10.2[0.10.2] - 2024-11-08

=== Changed

* Change MSRV to 1.67.0 ({pull-request-url}/240[#240])

== {compare-url}/v0.10.0\...v0.10.1[0.10.1] - 2024-09-29

=== Added
Expand Down
Loading

0 comments on commit b61cf9b

Please sign in to comment.