-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into rhmb/beefy-slashing…
…-fisherman-ancestry-proofs
- Loading branch information
Showing
1,683 changed files
with
99,368 additions
and
31,936 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,43 @@ | ||
version: | ||
format: 1 | ||
# Minimum version of the binary that is expected to work. This is just for printing a nice error | ||
# message when someone tries to use an older version. | ||
binary: 0.13.2 | ||
|
||
# The examples in this file assume crate `A` to have a dependency on crate `B`. | ||
workflows: | ||
check: | ||
- [ | ||
'lint', | ||
# Check that `A` activates the features of `B`. | ||
'propagate-feature', | ||
# These are the features to check: | ||
'--features=try-runtime,runtime-benchmarks,std', | ||
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually. | ||
'--left-side-feature-missing=ignore', | ||
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on. | ||
'--left-side-outside-workspace=ignore', | ||
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used. | ||
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking', | ||
# Actually modify the files and not just report the issues: | ||
'--offline', | ||
'--locked', | ||
'--show-path', | ||
'--quiet', | ||
] | ||
# Format the features into canonical format: | ||
- ['format', 'features', '--offline', '--locked', '--quiet'] | ||
# Same as `check`, but with the `--fix` flag. | ||
default: | ||
- [ $check.0, '--fix' ] | ||
- [ $check.1, '--fix' ] | ||
|
||
# Will be displayed when any workflow fails: | ||
help: | ||
text: | | ||
Polkadot-SDK uses the Zepter CLI to detect abnormalities in the feature configuration. | ||
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`. | ||
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you. | ||
links: | ||
- "https://github.com/paritytech/polkadot-sdk/issues/1831" | ||
- "https://github.com/ggwpez/zepter" |
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 |
---|---|---|
|
@@ -118,3 +118,7 @@ rules: | |
- minApprovals: 1 | ||
teams: | ||
- ci | ||
|
||
preventReviewRequests: | ||
teams: | ||
- core-devs |
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,71 @@ | ||
name: Build and Attach Runtimes to Releases/RC | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
env: | ||
PROFILE: production | ||
|
||
jobs: | ||
build_and_upload: | ||
strategy: | ||
matrix: | ||
runtime: | ||
- { name: westend, package: westend-runtime, path: polkadot/runtime/westend } | ||
- { name: rococo, package: rococo-runtime, path: polkadot/runtime/rococo } | ||
- { name: asset-hub-rococo, package: asset-hub-rococo-runtime, path: cumulus/parachains/runtimes/assets/asset-hub-rococo } | ||
- { name: asset-hub-westend, package: asset-hub-westend-runtime, path: cumulus/parachains/runtimes/assets/asset-hub-westend } | ||
- { name: bridge-hub-rococo, package: bridge-hub-rococo-runtime, path: cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo } | ||
- { name: contracts-rococo, package: contracts-rococo-runtime, path: cumulus/parachains/runtimes/contracts/contracts-rococo } | ||
- { name: collectives-westend, package: collectives-westend-runtime, path: cumulus/parachains/runtimes/collectives/collectives-westend } | ||
- { name: glutton-westend, package: glutton-westend-runtime, path: cumulus/parachains/runtimes/glutton/glutton-westend } | ||
build_config: | ||
# Release build has logging disabled and no dev features | ||
- { type: on-chain-release, opts: --features on-chain-release-build } | ||
# Debug build has logging enabled and developer features | ||
- { type: dev-debug-build, opts: --features try-runtime } | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build ${{ matrix.runtime.name }} ${{ matrix.build_config.type }} | ||
id: srtool_build | ||
uses: chevdor/[email protected] | ||
env: | ||
BUILD_OPTS: ${{ matrix.build_config.opts }} | ||
with: | ||
chain: ${{ matrix.runtime.name }} | ||
package: ${{ matrix.runtime.package }} | ||
runtime_dir: ${{ matrix.runtime.path }} | ||
profile: ${{ env.PROFILE }} | ||
|
||
- name: Build Summary | ||
run: | | ||
echo "${{ steps.srtool_build.outputs.json }}" | jq . > ${{ matrix.runtime.name }}-srtool-digest.json | ||
cat ${{ matrix.runtime.name }}-srtool-digest.json | ||
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}" | ||
- name: Set up paths and runtime names | ||
id: setup | ||
run: | | ||
RUNTIME_BLOB_NAME=$(echo ${{ matrix.runtime.package }} | sed 's/-/_/g').compact.compressed.wasm | ||
PREFIX=${{ matrix.build_config.type == 'dev-debug-build' && 'DEV_DEBUG_BUILD__' || '' }} | ||
echo "RUNTIME_BLOB_NAME=$RUNTIME_BLOB_NAME" >> $GITHUB_ENV | ||
echo "ASSET_PATH=./${{ matrix.runtime.path }}/target/srtool/${{ env.PROFILE }}/wbuild/${{ matrix.runtime.package }}/$RUNTIME_BLOB_NAME" >> $GITHUB_ENV | ||
echo "ASSET_NAME=$PREFIX$RUNTIME_BLOB_NAME" >> $GITHUB_ENV | ||
- name: Upload Runtime to Release | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ env.ASSET_PATH }} | ||
asset_name: ${{ env.ASSET_NAME }} | ||
asset_content_type: application/octet-stream | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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,29 @@ | ||
name: Check publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
merge_group: | ||
|
||
jobs: | ||
check-publish: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
cache-on-failure: true | ||
|
||
- name: install parity-publish | ||
run: cargo install parity-publish --profile dev | ||
|
||
- name: parity-publish check | ||
run: parity-publish check --allow-unpublished |
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,26 @@ | ||
name: Claim Crates | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
claim-crates: | ||
runs-on: ubuntu-latest | ||
environment: master | ||
steps: | ||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | ||
with: | ||
cache-on-failure: true | ||
|
||
- name: install parity-publish | ||
run: cargo install [email protected] | ||
|
||
- name: parity-publish claim | ||
env: | ||
PARITY_PUBLISH_CRATESIO_TOKEN: ${{ secrets.CRATESIO_PUBLISH_CLAIM_TOKEN }} | ||
run: parity-publish claim |
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,23 @@ | ||
name: gitspiegel sync | ||
|
||
# This workflow doesn't do anything, it's only use is to trigger "workflow_run" | ||
# webhook, that'll be consumed by gitspiegel | ||
# This way, gitspiegel won't do mirroring, unless this workflow runs, | ||
# and running the workflow is protected by GitHub | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- unlocked | ||
- ready_for_review | ||
- reopened | ||
merge_group: | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Do nothing | ||
run: echo "let's go" |
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,24 @@ | ||
name: Merge-Queue | ||
|
||
on: | ||
merge_group: | ||
|
||
jobs: | ||
trigger-merge-queue-action: | ||
runs-on: ubuntu-latest | ||
environment: master | ||
steps: | ||
- name: Generate token | ||
id: app_token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
with: | ||
app_id: ${{ secrets.REVIEW_APP_ID }} | ||
private_key: ${{ secrets.REVIEW_APP_KEY }} | ||
- name: Add Merge Queue status check | ||
uses: billyjbryant/create-status-check@3e6fa0ac599d10d9588cf9516ca4330ef669b858 # v2 | ||
with: | ||
authToken: ${{ steps.app_token.outputs.token }} | ||
context: 'review-bot' | ||
description: 'PRs for merge queue gets approved' | ||
state: 'success' | ||
sha: ${{ github.event.merge_group.head_commit.id }} |
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
Oops, something went wrong.