-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: replace toolchain #1156
Closed
realeinherjar
wants to merge
1
commit into
bitcoindevkit:master
from
realeinherjar:einherjar/rust-toolchain
Closed
ci: replace toolchain #1156
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -17,11 +17,8 @@ jobs: | |
- name: Install lcov tools | ||
run: sudo apt-get install lcov -y | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
components: llvm-tools-preview | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
|
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 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,19 +12,17 @@ jobs: | |||||||||||||||||
rust: | ||||||||||||||||||
- version: stable | ||||||||||||||||||
clippy: true | ||||||||||||||||||
- version: 1.57.0 # MSRV | ||||||||||||||||||
- version: "1.57.0" # MSRV | ||||||||||||||||||
features: | ||||||||||||||||||
- --no-default-features | ||||||||||||||||||
- --all-features | ||||||||||||||||||
steps: | ||||||||||||||||||
- name: checkout | ||||||||||||||||||
uses: actions/checkout@v2 | ||||||||||||||||||
- name: Install Rust toolchain | ||||||||||||||||||
uses: actions-rs/toolchain@v1 | ||||||||||||||||||
uses: dtolnay/rust-toolchain@stable | ||||||||||||||||||
with: | ||||||||||||||||||
toolchain: ${{ matrix.rust.version }} | ||||||||||||||||||
override: true | ||||||||||||||||||
profile: minimal | ||||||||||||||||||
- name: Rust Cache | ||||||||||||||||||
uses: Swatinem/[email protected] | ||||||||||||||||||
- name: Pin dependencies for MSRV | ||||||||||||||||||
|
@@ -56,11 +54,8 @@ jobs: | |||||||||||||||||
- name: Checkout | ||||||||||||||||||
uses: actions/checkout@v2 | ||||||||||||||||||
- name: Install Rust toolchain | ||||||||||||||||||
uses: actions-rs/toolchain@v1 | ||||||||||||||||||
uses: dtolnay/rust-toolchain@stable | ||||||||||||||||||
with: | ||||||||||||||||||
toolchain: stable | ||||||||||||||||||
override: true | ||||||||||||||||||
profile: minimal | ||||||||||||||||||
# target: "thumbv6m-none-eabi" | ||||||||||||||||||
- name: Rust Cache | ||||||||||||||||||
uses: Swatinem/[email protected] | ||||||||||||||||||
|
@@ -91,11 +86,8 @@ jobs: | |||||||||||||||||
- run: sudo apt-get update || exit 1 | ||||||||||||||||||
- run: sudo apt-get install -y libclang-common-10-dev clang-10 libc6-dev-i386 || exit 1 | ||||||||||||||||||
- name: Install Rust toolchain | ||||||||||||||||||
uses: actions-rs/toolchain@v1 | ||||||||||||||||||
uses: dtolnay/rust-toolchain@stable | ||||||||||||||||||
with: | ||||||||||||||||||
toolchain: stable | ||||||||||||||||||
override: true | ||||||||||||||||||
profile: minimal | ||||||||||||||||||
target: "wasm32-unknown-unknown" | ||||||||||||||||||
- name: Rust Cache | ||||||||||||||||||
uses: Swatinem/[email protected] | ||||||||||||||||||
|
@@ -113,11 +105,8 @@ jobs: | |||||||||||||||||
- name: Checkout | ||||||||||||||||||
uses: actions/checkout@v2 | ||||||||||||||||||
- name: Install Rust toolchain | ||||||||||||||||||
uses: actions-rs/toolchain@v1 | ||||||||||||||||||
uses: dtolnay/rust-toolchain@stable | ||||||||||||||||||
with: | ||||||||||||||||||
toolchain: stable | ||||||||||||||||||
override: true | ||||||||||||||||||
profile: minimal | ||||||||||||||||||
components: rustfmt | ||||||||||||||||||
- name: Check fmt | ||||||||||||||||||
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check | ||||||||||||||||||
|
@@ -126,16 +115,14 @@ jobs: | |||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||
steps: | ||||||||||||||||||
- uses: actions/checkout@v1 | ||||||||||||||||||
- uses: actions-rs/toolchain@v1 | ||||||||||||||||||
- uses: dtolnay/rust-toolchain@stable | ||||||||||||||||||
with: | ||||||||||||||||||
# we pin clippy instead of using "stable" so that our CI doesn't break | ||||||||||||||||||
# at each new cargo release | ||||||||||||||||||
toolchain: "1.67.0" | ||||||||||||||||||
Comment on lines
+118
to
122
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This could be simplified to this if desired |
||||||||||||||||||
components: clippy | ||||||||||||||||||
override: true | ||||||||||||||||||
- name: Rust Cache | ||||||||||||||||||
uses: Swatinem/[email protected] | ||||||||||||||||||
- uses: actions-rs/clippy-check@v1 | ||||||||||||||||||
- run: cargo clippy --all-features --all-targets -- -D warnings | ||||||||||||||||||
with: | ||||||||||||||||||
token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||
args: --all-features --all-targets -- -D warnings |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yaml is complicated, things like
1.60.0
will be rounded to1.6
.As a best practice use strings.
Also check YAML Hell