-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from 0xPolygonHermez/edu/add_rustfmt_clippy
fix get_toolchain_download_url
- Loading branch information
Showing
27 changed files
with
303 additions
and
200 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
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: PR | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
pull_request: | ||
branches: | ||
- "**" | ||
merge_group: | ||
|
||
jobs: | ||
test-x86_64: | ||
name: Test on x86_64 | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup CI | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
toolchain: nightly-2024-04-17 | ||
args: --all-targets --all-features | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
toolchain: nightly-2024-04-17 | ||
args: --release | ||
env: | ||
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | ||
RUST_BACKTRACE: 1 | ||
|
||
lint: | ||
name: Formatting & Clippy | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup CI | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
env: | ||
CARGO_INCREMENTAL: 1 | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-features --all-targets -- -D warnings -A incomplete-features | ||
env: | ||
CARGO_INCREMENTAL: 1 |
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,19 @@ | ||
{ | ||
"editor.inlineSuggest.enabled": true, | ||
"[rust]": { | ||
"editor.defaultFormatter": "rust-lang.rust-analyzer", | ||
"editor.formatOnSave": true, | ||
"editor.hover.enabled": true | ||
}, | ||
"editor.rulers": [ | ||
100 | ||
], | ||
"rust-analyzer.linkedProjects": [ | ||
"Cargo.toml", | ||
], | ||
//"rust-analyzer.showUnlinkedFileNotification": false, | ||
// "rust-analyzer.showUnlinkedFileNotification": false, | ||
// "rust-analyzer.check.workspace": false, | ||
// "rust-analyzer.check.invocationStrategy": "once", | ||
// "rust-analyzer.cargo.buildScripts.invocationStrategy": "once", | ||
} |
Oops, something went wrong.