-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
4,102 additions
and
3,014 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Check README | ||
|
||
on: | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
|
||
jobs: | ||
check_readme: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install cargo-hakari | ||
uses: baptiste0928/cargo-install@v1 | ||
with: | ||
crate: cargo-readme | ||
- name: Check that readme matches lib.rs | ||
run: | | ||
cp README.md README-copy.md | ||
make readme | ||
diff README.md README-copy.md |
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,44 @@ | ||
name: Rust | ||
|
||
on: | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: "true" | ||
- name: Build no features | ||
run: cargo build -p round-based | ||
- name: Build with tokio | ||
run: cargo build -p round-based --features runtime-tokio | ||
- name: Build with all features | ||
run: cargo build -p round-based --all-features | ||
- name: Run tests | ||
run: cargo test --all-features | ||
check-fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
check-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check docs | ||
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features | ||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: "true" | ||
- name: Run clippy | ||
run: cargo clippy --all --lib |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/target | ||
Cargo.lock | ||
.idea | ||
|
||
.cargo/ | ||
|
||
.helix/ |
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,21 @@ | ||
language: rust | ||
cache: cargo | ||
rust: stable | ||
virt: lxd | ||
|
||
before_install: | ||
- rustup component add rustfmt clippy | ||
|
||
script: | ||
- cargo build --verbose --no-default-features --features derive | ||
- cargo test --verbose --no-default-features --features derive | ||
- cargo fmt --all -- --check | ||
- cargo clippy -- -D clippy::all | ||
|
||
deploy: | ||
provider: cargo | ||
token: | ||
secure: "jZHHpJU9TMmwV1tMPxsDk6K+FaLdD8mhG8xsUIDqPb8j4/knPPXNT90Uci0yUHJf6kV5Pls2AUFUEeEawfMRUohADhVCXDK/HHZ/27rplPNJzEntTvSbPg+K8lDSw22f/YZEcAXQMl/u1Ynk9+sUBKKdj9JLkhKgvE5RvroC4KSKDlCBrR0yf8wOgAhFkcm/1PTKRFSWstFJ3XTK5dUoUSJu8jPGYK6yMlP4XmCb4NA7qA9us2/bpSAftqNguW9ovP7mLIO7fDY/hSZbXJ/yi33WcwL/fTkkrmCk9AdY0ciIv+mzSHvuUGvxKfyNAYAqXdvTBj9GxvvGOtkGp9jP2rUiXFyIQULz6LUbZ1rn0UCQECXditYIYJjsSN9NnLrTKQJGTxHYZjcoxFAJ8dfu/WqmAQ1E4q+0ZsnknG30afrnotaPYIegJgM0s0cUZBI9cA/5tdGE+XyR/UiNzI/UnSkICCcokIxXNKNeP21PcVL7+16QstPMwdzjneMW+MX/P3Fq4aiZeaZx2u96XIh0mbsiXdR1ZvAjBk6q9GaKdF6qCl0HLRe55IOaIwB61/n1B4v9iENiyDESM4cp//wvAkKuzEGWhF/9iVglLS+WKpbDcj3KYYcuGyc3rfqbjoZPT3UsmADKbQeE4naapOax/Cj1chWAGH0JhqeFmBrry80=" | ||
on: | ||
tags: true | ||
condition: '"$TRAVIS_TAG" =~ ^v[0-9].+$' |
Oops, something went wrong.