-
Notifications
You must be signed in to change notification settings - Fork 158
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 ```
- Loading branch information
1 parent
1d00244
commit ea69647
Showing
9 changed files
with
76 additions
and
17 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 |
---|---|---|
|
@@ -55,6 +55,56 @@ 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: 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