-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: add feature-flag:
bt
enables backtrace
`--features bt` enables backtrace when generating errors. By default errors does not contain backtrace info. Thus openraft can be built on stable rust by default. To use on stable rust with backtrace, set `RUSTC_BOOTSTRAP=1`, e.g.: ``` RUSTUP_TOOLCHAIN=stable RUSTC_BOOTSTRAP=1 make test ``` - fix: #241 commit-id:933ca964
- Loading branch information
1 parent
f5b5d54
commit 2a5c1b9
Showing
14 changed files
with
111 additions
and
65 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 |
---|---|---|
|
@@ -62,6 +62,63 @@ jobs: | |
args: --all-targets -- -D warnings -A clippy::bool-assert-comparison | ||
|
||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
path: | | ||
openraft/_log/ | ||
ut-on-stable-rust: | ||
name: unittest on stable rust | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup | Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup | Toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: "stable" | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Unit Tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
env: | ||
# Parallel tests block each other and result in timeout. | ||
RUST_TEST_THREADS: 2 | ||
RUST_LOG: debug | ||
RUST_BACKTRACE: full | ||
|
||
|
||
- name: Test example-raft-kv | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path example-raft-kv/Cargo.toml | ||
|
||
|
||
- name: Build | Release Mode | No features | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
|
||
|
||
- name: Build | Release Mode | No features | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --all-features | ||
env: | ||
# Enable unstable feature on stalbe rust. | ||
RUSTC_BOOTSTRAP: 1 | ||
|
||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
|
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
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
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
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
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
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
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
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
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
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
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
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
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 +1 @@ | ||
nightly-2022-02-07 | ||
nightly-2022-03-03 |