-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes paritytech/ci_cd#1017 - Enabled subsystem-benchmarks 100% + adjusted them to publish as separate job so it can use environment for scope secrets - Added -v1.* triggers for GHA checks - Removed remove subkey & polkavm from gitlab --------- Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
184 additions
and
274 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,98 @@ | ||
name: Build Misc | ||
|
||
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: | ||
contents: read | ||
|
||
jobs: | ||
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 | ||
- 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 | ||
build-runtimes-polkavm: | ||
timeout-minutes: 20 | ||
needs: [ set-image ] | ||
runs-on: ${{ needs.set-image.outputs.RUNNER }} | ||
container: | ||
image: ${{ needs.set-image.outputs.IMAGE }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check Rust | ||
run: | | ||
rustup show | ||
rustup +nightly show | ||
- name: Build | ||
env: | ||
SUBSTRATE_RUNTIME_TARGET: riscv | ||
run: | | ||
forklift cargo check -p minimal-template-runtime | ||
forklift cargo check -p westend-runtime | ||
forklift cargo check -p rococo-runtime | ||
forklift cargo check -p polkadot-test-runtime | ||
build-subkey: | ||
timeout-minutes: 20 | ||
needs: [ set-image ] | ||
runs-on: ${{ needs.set-image.outputs.RUNNER }} | ||
container: | ||
image: ${{ needs.set-image.outputs.IMAGE }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check Rust | ||
run: | | ||
rustup show | ||
rustup +nightly show | ||
- name: Build | ||
env: | ||
SKIP_WASM_BUILD: 1 | ||
run: | | ||
cd ./substrate/bin/utils/subkey | ||
forklift cargo build --locked --release | ||
confirm-required-build-misc-jobs-passed: | ||
runs-on: ubuntu-latest | ||
name: All build misc jobs passed | ||
# If any new job gets added, be sure to add it to this array | ||
needs: | ||
[ | ||
build-runtimes-polkavm, | ||
build-subkey | ||
] | ||
steps: | ||
- run: echo '### Good job! All the build misc tests passed 🚀' >> $GITHUB_STEP_SUMMARY |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.