Skip to content

Commit

Permalink
chore(release): Release version 0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Nov 8, 2024
2 parents 3441a7d + d77b456 commit 80d99cc
Show file tree
Hide file tree
Showing 17 changed files with 102 additions and 37 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.4"
current_version = "0.8.5"

[[tool.bumpversion.files]]
filename = "CITATION.cff"
Expand Down
55 changes: 49 additions & 6 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,49 @@ 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.62.0 # MSRV
- stable
- nightly
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/rust-cache@v2.7.5
with:
key: ${{ matrix.target }}
- name: Check a package
run: cargo check --target ${{ matrix.target }}
- name: Check a package (no default features)
run: cargo check --target ${{ matrix.target }} --no-default-features
- name: Check a package (`nightly` feature)
if: matrix.toolchain == 'nightly'
run: cargo check --target ${{ matrix.target }} -F nightly
- name: Check a package (`nightly` feature without `default` feature)
if: matrix.toolchain == 'nightly'
run: cargo check --target ${{ matrix.target }} --no-default-features -F nightly

test:
name: Test
runs-on: ${{ matrix.os }}
Expand All @@ -24,12 +67,12 @@ jobs:
- aarch64-apple-darwin
- x86_64-pc-windows-msvc
toolchain:
- 1.74.0 # MSRV
- 1.74.0
- stable
- nightly
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 Down Expand Up @@ -59,7 +102,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 @@ -75,7 +118,7 @@ jobs:

clippy:
name: Clippy
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -93,7 +136,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 @@ -108,7 +151,7 @@ jobs:

benchmark:
name: Benchmark
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/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
2 changes: 1 addition & 1 deletion .github/workflows/cffconvert.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
2 changes: 1 addition & 1 deletion .github/workflows/dependabot_auto_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
dependabot:
name: Dependabot auto-merge
if: github.actor == 'dependabot[bot]' && github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Dependabot metadata
id: metadata
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
gitlab:
name: Mirror to GitLab
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -34,7 +34,7 @@ jobs:
codeberg:
name: Mirror to Codeberg
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
runs-on: ubuntu-22.04
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.8.4\...v0.8.5[0.8.5] - 2024-11-08

=== Changed

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

== {compare-url}/v0.8.3\...v0.8.4[0.8.4] - 2024-10-31

=== 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-10-31
version: 0.8.4
date-released: 2024-11-08
version: 0.8.5

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

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

[package]
name = "sysexits"
version = "0.8.4"
version = "0.8.5"
authors = ["Shun Sakai <sorairolake@protonmail.ch>"]
edition = "2021"
rust-version = "1.74.0"
rust-version = "1.62.0"
description = "The system exit codes as defined by <sysexits.h>"
documentation = "https://docs.rs/sysexits"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
sysexits = "0.8.4"
sysexits = "0.8.5"
```

### Crate features
Expand Down Expand Up @@ -53,7 +53,7 @@ See the [documentation][docs-url] for more details.

## Minimum supported Rust version

The minimum supported Rust version (MSRV) of this library is v1.74.0.
The minimum supported Rust version (MSRV) of this library is v1.62.0.

## Source code

Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# SPDX-License-Identifier: Apache-2.0 OR MIT

msrv = "1.74.0"
msrv = "1.62.0"
6 changes: 6 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ mod tests {
assert_eq!(TryFromExitStatusError::new(None).code(), None);
}

#[cfg(feature = "std")]
#[test]
const fn code_try_from_exit_status_error_is_const_fn() {
const _: Option<i32> = TryFromExitStatusError::new(None).code();
}

#[cfg(feature = "std")]
#[test]
fn display_try_from_exit_status_error() {
Expand Down
10 changes: 10 additions & 0 deletions src/exit_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,11 @@ mod tests {
assert!(!ExitCode::Config.is_success());
}

#[test]
const fn is_success_is_const_fn() {
const _: bool = ExitCode::Ok.is_success();
}

#[test]
fn is_failure_for_successful_termination() {
assert!(!ExitCode::Ok.is_failure());
Expand All @@ -633,6 +638,11 @@ mod tests {
assert!(ExitCode::Config.is_failure());
}

#[test]
const fn is_failure_is_const_fn() {
const _: bool = ExitCode::Ok.is_failure();
}

#[cfg(feature = "std")]
#[test]
fn source() {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
//! [`<sysexits.h>`]: https://man.openbsd.org/sysexits
#![cfg_attr(feature = "extended_io_error", feature(io_error_more))]
#![doc(html_root_url = "https://docs.rs/sysexits/0.8.4/")]
#![doc(html_root_url = "https://docs.rs/sysexits/0.8.5/")]
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
// Lint levels of rustc.
Expand Down

0 comments on commit 80d99cc

Please sign in to comment.