Skip to content
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

Integrate cumulus using extended parachain template #28

Merged
merged 24 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
doc
**target*
.vscode/
.idea/
.git
**/target/
**/*.txt
**/*.md
/docker/
Dockerfile
.dockerignore
.local
.env*
!/target/release/polkadot-collator

# dotfiles in the repo root
/.*
33 changes: 23 additions & 10 deletions .editorconfig
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

12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/build.yml
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
45 changes: 0 additions & 45 deletions .github/workflows/check.yml

This file was deleted.

146 changes: 0 additions & 146 deletions .github/workflows/release.yml

This file was deleted.

27 changes: 22 additions & 5 deletions .gitignore
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
16 changes: 16 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Basic
hard_tabs = true
max_width = 100
use_small_heuristics = "Max"

# Imports
reorder_imports = true

# Consistency
newline_style = "Unix"

# Misc
chain_width = 80
match_arm_leading_pipes = "Preserve"
match_block_trailing_comma = true
use_field_init_shorthand = true
Loading
Loading