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

Updated to polkadot latest version #241

Open
wants to merge 20 commits into
base: make_compatible_with_kusama
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
- name: Add wasm toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-06-21
toolchain: nightly-2021-09-29
target: wasm32-unknown-unknown
override: true

- name: Initialize environment and build
run: |
rustup update stable
rustup toolchain install nightly-2021-06-21
rustup default nightly-2021-06-21
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21
rustup toolchain install nightly-2021-09-29
rustup default nightly-2021-09-29
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-09-29
cargo build --release

- name: Upload artifact
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
- name: Initialize WASM build environment
run: |
rustup update stable
rustup toolchain install nightly-2021-06-21
rustup default nightly-2021-06-21
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21
rustup toolchain install nightly-2021-11-07
rustup default nightly-2021-11-07
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-07

- name: Run cargo check
run: cargo +nightly-2021-06-21 check
run: cargo +nightly-2021-11-07 check

test:
name: Test Suite
Expand All @@ -56,14 +56,14 @@ jobs:
- name: Initialize WASM build environment
run: |
rustup update stable
rustup toolchain install nightly-2021-06-21
rustup default nightly-2021-06-21
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21
rustup toolchain install nightly-2021-11-07
rustup default nightly-2021-11-07
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-07

# Runs integration tests in the runtime/tests folder
- name: Run All Tests
run: |
cargo +nightly-2021-06-21 test
cargo +nightly-2021-11-07 test

lints:
name: Lints
Expand All @@ -88,19 +88,19 @@ jobs:
override: true
components: rustfmt, clippy

# nightly-2021-06-21-x86_64-unknown-linux-gnu
# nightly-2021-11-07-x86_64-unknown-linux-gnu
- name: Initialize WASM build environment
run: |
rustup update stable
rustup toolchain install nightly-2021-06-21
rustup default nightly-2021-06-21
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21
rustup toolchain install nightly-2021-11-07
rustup default nightly-2021-11-07
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-07

# Ignore use of Rust Linting since rearranging makes it challenging to update to latest Substrate
# - name: Run cargo fmt
# run: |
# rustup component add rustfmt --toolchain nightly-2021-06-21-x86_64-unknown-linux-gnu
# cargo +nightly-2021-06-21 fmt --all -- --check
# rustup component add rustfmt --toolchain nightly-2021-11-07-x86_64-unknown-linux-gnu
# cargo +nightly-2021-11-07 fmt --all -- --check

# Ignore use of Clippy until a clippy.toml file may be used. See README.md
# - name: Run cargo clippy
Expand All @@ -110,6 +110,6 @@ jobs:
# # args: --release -- -D warnings
# # FIXME - temporary fix below. See https://github.com/rust-lang/rust-clippy/issues/5094#issuecomment-579116431
# run: |
# rustup component add clippy --toolchain nightly-2021-06-21-x86_64-unknown-linux-gnu
# rustup component add clippy-preview --toolchain nightly-2021-06-21-x86_64-unknown-linux-gnu
# cargo +nightly-2021-06-21 clippy-preview -Zunstable-options
# rustup component add clippy --toolchain nightly-2021-11-07-x86_64-unknown-linux-gnu
# rustup component add clippy-preview --toolchain nightly-2021-11-07-x86_64-unknown-linux-gnu
# cargo +nightly-2021-11-07 clippy-preview -Zunstable-options
Loading