-
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.
Merge pull request #24 from Metaquity-Network/develop
Develop
- Loading branch information
Showing
68 changed files
with
13,576 additions
and
5,307 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.git | ||
**/target/ | ||
**/*.txt | ||
**/*.md | ||
/docker/ | ||
Dockerfile | ||
!/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 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 @@ | ||
**/chain-specs/*.json filter=lfs diff=lfs merge=lfs -text |
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,60 @@ | ||
name: Build, test and lint | ||
|
||
on: | ||
push: | ||
branches: ["**"] | ||
|
||
workflow_dispatch: | ||
|
||
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: Install protoc | ||
run: | | ||
sudo apt-get install -y protobuf-compiler | ||
protoc --version | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Rust Setup | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
targets: wasm32-unknown-unknown | ||
toolchain: nightly-2023-05-22 | ||
|
||
- name: Rustfmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
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,28 @@ | ||
# 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/* | ||
|
||
# direnv files | ||
.envrc | ||
.direnv | ||
# zombienet binaries | ||
zombienet-macos | ||
zombient-linux-x64 |
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,6 @@ | ||
{ | ||
"[rust]": { | ||
"editor.defaultFormatter": "rust-lang.rust-analyzer", | ||
"editor.formatOnSave": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.