-
Notifications
You must be signed in to change notification settings - Fork 4
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
61 changed files
with
12,580 additions
and
5,521 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
.git | ||
**/target/ | ||
**/*.txt | ||
**/*.md | ||
/docker/ | ||
!/target/release/polkadot-collator | ||
|
||
# dotfiles in the repo root | ||
/.* |
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,16 +1,29 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style=space | ||
indent_size=2 | ||
tab_width=2 | ||
end_of_line=lf | ||
charset=utf-8 | ||
trim_trailing_whitespace=true | ||
insert_final_newline = true | ||
|
||
[*.{rs,toml}] | ||
indent_style=tab | ||
indent_size=tab | ||
tab_width=4 | ||
end_of_line=lf | ||
charset=utf-8 | ||
trim_trailing_whitespace=true | ||
max_line_length=100 | ||
insert_final_newline=true | ||
|
||
[*.yml] | ||
indent_style=space | ||
indent_size=2 | ||
tab_width=8 | ||
end_of_line=lf | ||
|
||
[*.sh] | ||
indent_style=space | ||
indent_size=4 | ||
tab_width=8 | ||
end_of_line=lf | ||
|
||
[*.json] | ||
indent_style=space | ||
indent_size=2 | ||
tab_width=8 | ||
end_of_line=lf | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,64 @@ | ||
name: Build, test and lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-** | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
jobs: | ||
build: | ||
name: "Build" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Free up space on runner | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Rust Setup | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Install protoc | ||
run: | | ||
sudo apt-get install -y protobuf-compiler | ||
protoc --version | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Rustfmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: stable | ||
command: fmt | ||
args: --all --check | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
cache-on-failure: true | ||
cache-all-crates: true | ||
|
||
- name: Check Build | ||
run: | | ||
cargo check --release | ||
- name: Run tests | ||
run: cargo test --release --locked --verbose --all | ||
|
||
- name: Check try-runtime build | ||
run: cargo check --release --features=try-runtime | ||
|
||
- name: Ensure benchmarking compiles | ||
run: > | ||
pushd node && | ||
cargo check --release --features=runtime-benchmarks |
This file was deleted.
Oops, something went wrong.
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,11 +1,30 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
# Cargo compiled files and executables | ||
**/target/ | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# Local chain databases (defalut location) | ||
**/chains/ | ||
|
||
# The cache for chain data in container | ||
.local | ||
|
||
# The cache for docker container dependency | ||
/.cargo/config | ||
|
||
.DS_Store | ||
.idea | ||
.vscode | ||
|
||
# polkadot-launch logs | ||
*.log | ||
|
||
# node binaries | ||
bin/* | ||
|
||
# zombienet binaries | ||
zombienet-macos | ||
zombient-linux-x64 | ||
|
||
# direnv files | ||
.envrc | ||
.direnv | ||
polkadot-sdk/* |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.