Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into ao-use-blake2-for-runtime-map-hashes
Browse files Browse the repository at this point in the history
* master: (98 commits)
  Companion PR for #8414 - Remove OffencesWeightSoftLimit (#2966)
  Companion for Substrate#8663 (#2945)
  Add parachains modules to Westend and Kusama runtimes (#2854)
  Make KeyStore optional (#2964)
  v0.9.0 prep (#2959)
  Implement null weight trader (#2957)
  feat: add proc macro to reduce overseer mock boilerplate (#2949)
  Allow normal accounts to execute XCM for withdraw+teleport (#2953)
  Required weight is returned in case it exceeds limit. (#2952)
  Bump version, bump substrate & update benchmarks in preparation for v0.8.31 (#2938)
  Bump BEEFY (#2946)
  Send statements to own backing group first (#2927)
  Bump (#2942)
  Add Dev Config for Rococo and Wococo (#2928)
  change junction parachain id from named field to unnamed field (#2940)
  fix link (#2941)
  Add XCM Origin and converter (#2896)
  Add Statemint teleport (#2934)
  CI: build colander on rococo branch too (#2936)
  Bump BEEFY (#2937)
  ...
  • Loading branch information
ordian committed May 3, 2021
2 parents 66b2801 + 735aa24 commit c0da0d6
Show file tree
Hide file tree
Showing 587 changed files with 35,604 additions and 20,479 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ candidate branch.
runtime logic.

The following checks can be performed after we have forked off to the release-
candidate branch.
candidate branch or started an additional release candidate branch (rc-2, rc-3, etc)

- [ ] Verify [new migrations](#new-migrations) complete successfully, and the
runtime state is correctly updated for any public (non-private/test)
networks.
- [ ] Verify [Polkadot JS API](#polkadot-js) are up to date with the latest
runtime changes.
- [ ] Push runtime upgrade to Westend and verify network stability.

### All Releases

Expand Down
46 changes: 24 additions & 22 deletions .github/workflows/publish-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,26 @@ on:
- v[0-9]+.[0-9]+.[0-9]+*

jobs:
get-rust-versions:
runs-on: ubuntu-latest
container:
image: paritytech/ci-linux:production
outputs:
rustc-stable: ${{ steps.get-rust-versions.outputs.stable }}
rustc-nightly: ${{ steps.get-rust-versions.outputs.nightly }}
steps:
- id: get-rust-versions
run: |
echo "::set-output name=stable::$(rustc +stable --version)"
echo "::set-output name=nightly::$(rustc +nightly --version)"
build-runtimes:
runs-on: ubuntu-latest
strategy:
matrix:
runtime: ['polkadot', 'kusama']
container:
image: paritytech/srtool:nightly-2020-10-27
image: paritytech/srtool:nightly-2021-03-15
volumes:
- ${{ github.workspace }}:/build
env:
Expand All @@ -32,39 +45,28 @@ jobs:
- name: Build ${{ matrix.runtime }} runtime
id: build-runtime
shell: bash
env:
srtool_output_filename: ${{ matrix.runtime }}_srtool_output.json
run: |
cd /build
pwd
ls -la
build --json | tee srtool_output.json
cat srtool_output.json
build --json | tee $srtool_output_filename
cat $srtool_output_filename
while IFS= read -r line; do
echo "::set-output name=$line::$(jq -r ".$line" < srtool_output.json)"
done <<< "$(jq -r 'keys[]' < srtool_output.json)"
echo "::set-output name=$line::$(jq -r ".$line" < $srtool_output_filename)"
done <<< "$(jq -r 'keys[]' < $srtool_output_filename)"
- name: Upload ${{ matrix.runtime }} srtool json
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.runtime }}-srtool-json
path: srtool_output.json
path: ${{ matrix.runtime }}_srtool_output.json
- name: Upload ${{ matrix.runtime }} runtime
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.runtime }}-runtime
path: "${{ steps.build-runtime.outputs.wasm }}"

get-rust-versions:
runs-on: ubuntu-latest
container:
image: paritytech/ci-linux:production
outputs:
rustc-stable: ${{ steps.get-rust-versions.outputs.stable }}
rustc-nightly: ${{ steps.get-rust-versions.outputs.nightly }}
steps:
- id: get-rust-versions
run: |
echo "::set-output name=stable::$(rustc +stable --version)"
echo "::set-output name=nightly::$(rustc +nightly --version)"
publish-draft-release:
runs-on: ubuntu-latest
needs: ['get-rust-versions', 'build-runtimes']
Expand Down Expand Up @@ -109,15 +111,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: ${{ matrix.runtime }}-runtime
- name: Set up Ruby 2.7
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- name: Get runtime version
id: get-runtime-ver
run: |
ls
ls "${{ matrix.runtime }}-runtime"
runtime_ver="$(ruby -e 'require "./scripts/github/lib.rb"; puts get_runtime("${{ matrix.runtime }}")')"
echo "::set-output name=runtime_ver::$runtime_ver"
- name: Upload ${{ matrix.runtime }} wasm
Expand All @@ -126,7 +128,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.publish-draft-release.outputs.asset_upload_url }}
asset_path: ./${{ matrix.runtime }}_runtime.compact.wasm
asset_path: "${{ matrix.runtime }}-runtime/${{ matrix.runtime }}_runtime.compact.wasm"
asset_name: ${{ matrix.runtime }}_runtime-v${{ steps.get-runtime-ver.outputs.runtime_ver }}.compact.wasm
asset_content_type: application/wasm

Expand Down
Loading

0 comments on commit c0da0d6

Please sign in to comment.