fix(sc-executor): store table for wasm executor #2
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
name: Checks | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: {} | |
jobs: | |
# temporary disabled because currently doesn't work in merge queue | |
# changes: | |
# permissions: | |
# pull-requests: read | |
# uses: ./.github/workflows/reusable-check-changed-files.yml | |
set-image: | |
# GitHub Actions allows using 'env' in a container context. | |
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322 | |
# This workaround sets the container image for each job using 'set-image' job output. | |
runs-on: ubuntu-latest | |
outputs: | |
IMAGE: ${{ steps.set_image.outputs.IMAGE }} | |
RUNNER: ${{ steps.set_runner.outputs.RUNNER }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- id: set_image | |
run: cat .github/env >> $GITHUB_OUTPUT | |
# By default we use spot machines that can be terminated at any time. | |
# Merge queues use persistent runners to avoid kicking off from queue when the runner is terminated. | |
- id: set_runner | |
run: | | |
# Run merge queues on persistent runners | |
if [[ $GITHUB_REF_NAME == *"gh-readonly-queue"* ]]; then | |
echo "RUNNER=arc-runners-polkadot-sdk-beefy-persistent" >> $GITHUB_OUTPUT | |
else | |
echo "RUNNER=arc-runners-polkadot-sdk-beefy" >> $GITHUB_OUTPUT | |
fi | |
cargo-clippy: | |
runs-on: ${{ needs.set-image.outputs.RUNNER }} | |
needs: [set-image] | |
# if: ${{ needs.changes.outputs.rust }} | |
timeout-minutes: 40 | |
container: | |
image: ${{ needs.set-image.outputs.IMAGE }} | |
env: | |
RUSTFLAGS: "-D warnings" | |
SKIP_WASM_BUILD: 1 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: script | |
run: | | |
forklift cargo clippy --all-targets --locked --workspace | |
forklift cargo clippy --all-targets --all-features --locked --workspace | |
check-try-runtime: | |
runs-on: ${{ needs.set-image.outputs.RUNNER }} | |
needs: [set-image] | |
# if: ${{ needs.changes.outputs.rust }} | |
timeout-minutes: 40 | |
container: | |
image: ${{ needs.set-image.outputs.IMAGE }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: script | |
run: | | |
forklift cargo check --locked --all --features try-runtime | |
# this is taken from cumulus | |
# Check that parachain-template will compile with `try-runtime` feature flag. | |
forklift cargo check --locked -p parachain-template-node --features try-runtime | |
# add after https://github.com/paritytech/substrate/pull/14502 is merged | |
# experimental code may rely on try-runtime and vice-versa | |
forklift cargo check --locked --all --features try-runtime,experimental | |
# check-core-crypto-features works fast without forklift | |
check-core-crypto-features: | |
runs-on: ${{ needs.set-image.outputs.RUNNER }} | |
needs: [set-image] | |
# if: ${{ needs.changes.outputs.rust }} | |
timeout-minutes: 30 | |
container: | |
image: ${{ needs.set-image.outputs.IMAGE }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: script | |
run: | | |
cd substrate/primitives/core | |
./check-features-variants.sh | |
cd - | |
cd substrate/primitives/application-crypto | |
./check-features-variants.sh | |
cd - | |
cd substrate/primitives/keyring | |
./check-features-variants.sh | |
cd - | |
# name of this job must be unique across all workflows | |
# otherwise GitHub will mark all these jobs as required | |
confirm-required-checks-passed: | |
runs-on: ubuntu-latest | |
name: All checks passed | |
# If any new job gets added, be sure to add it to this array | |
needs: [cargo-clippy, check-try-runtime, check-core-crypto-features] | |
steps: | |
- run: echo '### Good job! All the checks passed 🚀' >> $GITHUB_STEP_SUMMARY |