-
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.
chore(release): Release version 0.10.2
- Loading branch information
Showing
46 changed files
with
259 additions
and
196 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
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
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 |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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) | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |
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
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
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
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,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 }} |
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
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
Oops, something went wrong.