Skip to content

Commit

Permalink
chore(ci): add tests job for MSRV (1.65.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Jun 19, 2023
1 parent 4f8f985 commit 439b43b
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,27 @@ env:

jobs:
tests:
strategy:
matrix:
rust_version: [1.65.0, stable]
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}

- name: set default rust toolchain
run: rustup default ${{ matrix.rust_version }}
- name: print rustc version
run: rustc --version
- name: Run tests
run: |
cargo build --workspace
pushd borsh
cargo test --no-run
cargo test
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ members = [
[workspace.package]
# shared version of all public crates in the workspace
version = "0.11.0"
rust-version = "1.65.0"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[Latest Version]: https://img.shields.io/crates/v/borsh.svg
[crates.io]: https://crates.io/crates/borsh
[borsh: rustc 1.55+]: https://img.shields.io/badge/rustc-1.55+-lightgray.svg
[Rust 1.55]: https://blog.rust-lang.org/2021/09/09/Rust-1.55.0.html
[Rust 1.65]: https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html
[License Apache-2.0 badge]: https://img.shields.io/badge/license-Apache2.0-blue.svg
[License Apache-2.0]: https://opensource.org/licenses/Apache-2.0
[License MIT badge]: https://img.shields.io/badge/license-MIT-blue.svg
Expand Down
1 change: 1 addition & 0 deletions benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "benchmarks"
version.workspace = true
rust-version.workspace = true
authors = ["Near Inc <hello@nearprotocol.com>"]
edition = "2018"
publish = false
Expand Down
1 change: 1 addition & 0 deletions borsh-derive-internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "borsh-derive-internal"
version.workspace = true
rust-version.workspace = true
authors = ["Near Inc <hello@nearprotocol.com>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions borsh-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "borsh-derive"
version.workspace = true
rust-version.workspace = true
authors = ["Near Inc <hello@nearprotocol.com>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions borsh-schema-derive-internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "borsh-schema-derive-internal"
version.workspace = true
rust-version.workspace = true
authors = ["Near Inc <hello@nearprotocol.com>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions borsh/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "borsh"
version.workspace = true
rust-version.workspace = true
authors = ["Near Inc <hello@near.org>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions fuzz/fuzz-run/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "borsh-fuzz"
version.workspace = true
rust-version.workspace = true
authors = ["Near Inc <hello@nearprotocol.com>"]
edition = "2018"
publish = false
Expand Down

0 comments on commit 439b43b

Please sign in to comment.