Enable CI for the deserde branch

This commit is contained in:
Victor Koenders 2021-09-13 13:36:29 +02:00
parent d800d0f181
commit cbd5c6b940
3 changed files with 206 additions and 203 deletions

View File

@ -1,175 +1,178 @@
{ {
"name": "CI", "name": "CI",
"on": { "on": {
"push": { "push": {
"branches": [ "branches": [
"trunk", "trunk",
"v*.x" "feature/deserde", # Temporary while we work on deserde
] "v*.x"
}, ]
"pull_request": { },
"branches": [ "pull_request": {
"trunk", "branches": [
"v*.x" "trunk",
] "v*.x"
} ]
}, }
"jobs": { },
"check": { "jobs": {
"name": "Check", "check": {
"runs-on": "ubuntu-latest", "name": "Check",
"strategy": { "runs-on": "ubuntu-latest",
"fail-fast": false, "strategy": {
"matrix": { "fail-fast": false,
"rust": [ "matrix": {
"stable", "rust": [
"beta", "stable",
"nightly", "beta",
"1.41.0" "nightly",
] "1.41.0"
} ]
}, }
"steps": [ },
{ "steps": [
"uses": "actions/checkout@v2", {
"name": "Checkout" "uses": "actions/checkout@v2",
}, "name": "Checkout"
{ },
"uses": "actions-rs/toolchain@v1", {
"with": { "uses": "actions-rs/toolchain@v1",
"profile": "minimal", "with": {
"toolchain": "${{ matrix.rust }}", "profile": "minimal",
"override": true "toolchain": "${{ matrix.rust }}",
}, "override": true
"name": "Install Rust ${{ matrix.rust }}" },
}, "name": "Install Rust ${{ matrix.rust }}"
{ },
"uses": "actions-rs/cargo@v1", {
"with": { "uses": "actions-rs/cargo@v1",
"command": "check" "with": {
}, "command": "check"
"name": "Run `cargo check`" },
}, "name": "Run `cargo check`"
{ }
"uses": "actions-rs/cargo@v1", # ,
"with": { # {
"command": "check", # "uses": "actions-rs/cargo@v1",
"args": "--examples" # "with": {
}, # "command": "check",
"name": "Check examples", # "args": "--examples"
"if": "matrix.rust != '1.41.0'" # },
} # "name": "Check examples",
] # "if": "matrix.rust != '1.41.0'"
}, # }
"test": { ]
"name": "Test", },
"runs-on": "ubuntu-latest", "test": {
"strategy": { "name": "Test",
"matrix": { "runs-on": "ubuntu-latest",
"rust": [ "strategy": {
"stable", "matrix": {
"beta", "rust": [
"nightly" "stable",
] "beta",
} "nightly"
}, ]
"steps": [ }
{ },
"uses": "actions/checkout@v2", "steps": [
"name": "Checkout" {
}, "uses": "actions/checkout@v2",
{ "name": "Checkout"
"uses": "actions-rs/toolchain@v1", },
"with": { {
"profile": "minimal", "uses": "actions-rs/toolchain@v1",
"toolchain": "${{ matrix.rust }}", "with": {
"override": true "profile": "minimal",
}, "toolchain": "${{ matrix.rust }}",
"name": "Install Rust ${{ matrix.rust }}" "override": true
}, },
{ "name": "Install Rust ${{ matrix.rust }}"
"uses": "actions-rs/cargo@v1", },
"with": { {
"command": "test" "uses": "actions-rs/cargo@v1",
}, "with": {
"name": "Run `cargo test`" "command": "test"
} },
] "name": "Run `cargo test`"
}, }
"lints": { ]
"name": "Lints", },
"runs-on": "ubuntu-latest", "lints": {
"steps": [ "name": "Lints",
{ "runs-on": "ubuntu-latest",
"uses": "actions/checkout@v2", "steps": [
"name": "Checkout" {
}, "uses": "actions/checkout@v2",
{ "name": "Checkout"
"uses": "actions-rs/toolchain@v1", },
"with": { {
"profile": "minimal", "uses": "actions-rs/toolchain@v1",
"toolchain": "stable", "with": {
"override": true, "profile": "minimal",
"components": "rustfmt, clippy" "toolchain": "stable",
}, "override": true,
"name": "Install Rust stable" "components": "rustfmt, clippy"
}, },
{ "name": "Install Rust stable"
"uses": "actions-rs/cargo@v1", },
"with": { {
"command": "fmt", "uses": "actions-rs/cargo@v1",
"args": "--all -- --check" "with": {
}, "command": "fmt",
"name": "Run `cargo fmt`" "args": "--all -- --check"
}, },
{ "name": "Run `cargo fmt`"
"uses": "actions-rs/cargo@v1", },
"with": { {
"command": "clippy", "uses": "actions-rs/cargo@v1",
"args": "-- -D warnings" "with": {
}, "command": "clippy",
"name": "Run `cargo clippy`" "args": "-- -D warnings"
} },
] "name": "Run `cargo clippy`"
}, }
"coverage": { ]
"name": "Code Coverage", }
"runs-on": "ubuntu-latest", # Tarpaulin seems to not work with bincode_derive
"steps": [ # "coverage": {
{ # "name": "Code Coverage",
"uses": "actions/checkout@v2", # "runs-on": "ubuntu-latest",
"name": "Checkout" # "steps": [
}, # {
{ # "uses": "actions/checkout@v2",
"uses": "actions-rs/toolchain@v1", # "name": "Checkout"
"with": { # },
"profile": "minimal", # {
"toolchain": "nightly", # "uses": "actions-rs/toolchain@v1",
"override": true # "with": {
}, # "profile": "minimal",
"name": "Install Rust nightly" # "toolchain": "nightly",
}, # "override": true
{ # },
"name": "Run cargo-tarpaulin", # "name": "Install Rust nightly"
"uses": "actions-rs/tarpaulin@v0.1", # },
"with": { # {
"version": "0.12.3", # "name": "Run cargo-tarpaulin",
"args": "--ignore-tests -- --test-threads 1" # "uses": "actions-rs/tarpaulin@v0.1",
} # "with": {
}, # "version": "0.18.2",
{ # "args": "--ignore-tests -- --test-threads 1"
"name": "Upload to codecov.io", # }
"uses": "codecov/codecov-action@v1" # },
}, # {
{ # "name": "Upload to codecov.io",
"name": "Archive code coverage results", # "uses": "codecov/codecov-action@v1"
"uses": "actions/upload-artifact@v1", # },
"with": { # {
"name": "code-coverage-report", # "name": "Archive code coverage results",
"path": "cobertura.xml" # "uses": "actions/upload-artifact@v1",
} # "with": {
} # "name": "code-coverage-report",
] # "path": "cobertura.xml"
} # }
} # }
} # ]
# }
}
}

View File

@ -1,27 +1,27 @@
[package] [package]
name = "bincode" name = "bincode"
version = "2.0.0-dev" # remember to update html_root_url version = "2.0.0-dev" # remember to update html_root_url and bincode_derive
authors = ["Ty Overby <ty@pre-alpha.com>", "Francesco Mazzoli <f@mazzo.li>", "Zoey Riordan <zoey@dos.cafe>"] authors = ["Ty Overby <ty@pre-alpha.com>", "Francesco Mazzoli <f@mazzo.li>", "Zoey Riordan <zoey@dos.cafe>"]
exclude = ["logo.png", "examples/*", ".gitignore", ".github/"] exclude = ["logo.png", "examples/*", ".gitignore", ".github/"]
publish = true publish = true
repository = "https://github.com/bincode-org/bincode" repository = "https://github.com/bincode-org/bincode"
documentation = "https://docs.rs/bincode" documentation = "https://docs.rs/bincode"
readme = "./readme.md" readme = "./readme.md"
categories = ["encoding", "network-programming"] categories = ["encoding", "network-programming"]
keywords = ["binary", "encode", "decode", "serialize", "deserialize"] keywords = ["binary", "encode", "decode", "serialize", "deserialize"]
license = "MIT" license = "MIT"
description = "A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!" description = "A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!"
edition = "2018" edition = "2018"
[features] [features]
default = ["std"] default = ["std"]
std = [] std = []
alloc = [] alloc = []
[dependencies] [dependencies]
bincode_derive = { path = "derive" } bincode_derive = { path = "derive", version = "2.0.0-dev" }
# serde = { version = "1.0.130", optional = true } # serde = { version = "1.0.130", optional = true }

View File

@ -1,6 +1,6 @@
[package] [package]
name = "bincode_derive" name = "bincode_derive"
version = "0.1.0" version = "2.0.0-dev" # remember to update bincode
edition = "2018" edition = "2018"
[lib] [lib]