diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a5e9ec2..64b7962 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -14,13 +14,8 @@ jobs: steps: - name: Fetch latest code uses: actions/checkout@v3 - - name: Install Rust nightly toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - default: true - name: Cargo test uses: actions-rs/cargo@v1 with: command: test - args: --all --all-features + args: --workspace --all-features --all-targets --locked diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7494bcf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + - "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" + +env: + CARGO_TERM_COLOR: always + +jobs: + publish-on-crates-io: + name: Publish on crates.io + runs-on: ubuntu-latest + steps: + - name: Fetch latest code + uses: actions/checkout@v3 + - name: Login + run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Publish + uses: actions-rs/cargo@v1 + with: + command: publish + args: publish --locked diff --git a/CHANGELOG b/CHANGELOG index 78e5e4d..68394d9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +## v4.2.0 +- Bump dependencies. +- Update CI. +- Update license. + ## v4.1.0 - Mark `hex_bytes2hex_str_unchecked` as unsafe. diff --git a/Cargo.lock b/Cargo.lock index 7c69ee7..6f7ecb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,7 +10,7 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" [[package]] name = "array-bytes" -version = "4.1.0" +version = "4.2.0" dependencies = [ "criterion", "faster-hex", diff --git a/Cargo.toml b/Cargo.toml index 007dec6..167fffb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ license = "Apache-2.0/GPL-3.0" name = "array-bytes" readme = "README.md" repository = "https://github.com/hack-ink/array-bytes" -version = "4.1.0" +version = "4.2.0" [badges] maintenance = { status = "actively-developed" } diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index bcdcd20..2eabcf9 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -4,10 +4,10 @@ edition = "2021" metadata = { cargo-fuzz = true } name = "array-bytes-fuzz" publish = false -version = "4.1.0" +version = "4.2.0" [dependencies] -array-bytes = { version = "4.1", path = ".." } +array-bytes = { version = "4.2", path = ".." } libfuzzer-sys = { version = "0.4" } [workspace]