Skip to content

Commit

Permalink
Merge remote-tracking branch 'parity/master' into bump/contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Nov 25, 2020
2 parents 07616b0 + 24809aa commit dfe52f0
Show file tree
Hide file tree
Showing 182 changed files with 3,576 additions and 8,470 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/auto-label-issues.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/auto-label-prs.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/burnin-label-notification.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/md-link-check.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/workflows/mlc_config.json

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/polkadot-companion-labels.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/release-bot.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/release-tagging.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build && Tests

on:
push:
branches: [ patract-contracts ]
pull_request:
branches: [ patract-contracts ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v1
- name: Set nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2020-10-05
target: wasm32-unknown-unknown
override: true
- name: Cache substrate deps
uses: actions/cache@v1
env:
cache-name: substrate-cache
with:
path: ./target
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./Cargo.lock') }}
- name: Init
run: git submodule update --init --remote
- name: Build && Tests
run: |
https://github.com/patractlabs/jupiter.git --depth=1 ~/jupiter
cd frame/contracts
mkdir -p ../../../../primitives
mv ~/jupiter/primitives/io ../../../../primitives
cargo build -vv
cargo test -vv
20 changes: 0 additions & 20 deletions .github/workflows/trigger-review-pipeline.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ cargo-check-benches:
<<: *docker-env
<<: *test-refs
script:
- BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly check --benches --all
- SKIP_WASM_BUILD=1 time cargo +nightly check --benches --all
- cargo run --release -p node-bench -- ::node::import::native::sr25519::transfer_keep_alive::paritydb::small
- cargo run --release -p node-bench -- ::trie::read::small
- sccache -s
Expand All @@ -208,7 +208,7 @@ cargo-check-subkey:
<<: *test-refs
script:
- cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- SKIP_WASM_BUILD=1 time cargo check --release
- sccache -s

test-deterministic-wasm:
Expand All @@ -222,7 +222,7 @@ test-deterministic-wasm:
# build runtime
- cargo build --verbose --release -p node-runtime
# make checksum
- sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/node_runtime.wasm > checksum.sha256
- sha256sum target/release/wbuild/node-runtime/target/wasm32-unknown-unknown/release/node_runtime.wasm > checksum.sha256
# clean up – FIXME: can we reuse some of the artifacts?
- cargo clean
# build again
Expand Down Expand Up @@ -343,7 +343,7 @@ cargo-check-macos:
<<: *docker-env
<<: *test-refs
script:
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- SKIP_WASM_BUILD=1 time cargo check --release
- sccache -s
tags:
- osx
Expand Down Expand Up @@ -451,7 +451,7 @@ build-linux-subkey: &build-subkey
- mkdir -p ./artifacts/subkey
script:
- cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose
- SKIP_WASM_BUILD=1 time cargo build --release --verbose
- cd -
- mv ./target/release/subkey ./artifacts/subkey/.
- echo -n "Subkey version = "
Expand Down Expand Up @@ -483,7 +483,7 @@ build-rust-doc:
- ./crate-docs/
script:
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
- BUILD_DUMMY_WASM_BINARY=1 RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html"
- SKIP_WASM_BUILD=1 RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html"
time cargo +nightly doc --no-deps --workspace --all-features --verbose
- mv ./target/doc ./crate-docs
- echo "<meta http-equiv=refresh content=0;url=sc_service/index.html>" > ./crate-docs/index.html
Expand Down
3 changes: 2 additions & 1 deletion .maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! Weights for {{pallet}}
//! Autogenerated weights for {{pallet}}
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
//! DATE: {{date}}, STEPS: {{cmd.steps}}, REPEAT: {{cmd.repeat}}, LOW RANGE: {{cmd.lowest_range_values}}, HIGH RANGE: {{cmd.highest_range_values}}
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
Expand Down
3 changes: 3 additions & 0 deletions .maintain/gitlab/check_polkadot_companion_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ cd polkadot
# Test Polkadot pr or master branch with this Substrate commit.
cargo update -p sp-io
time cargo test --all --release --verbose --features=real-overseer

cd parachain/test-parachains/adder/collator/
time cargo test --release --verbose --locked --features=real-overseer
Loading

0 comments on commit dfe52f0

Please sign in to comment.