Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/check-runtime-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
if: ${{ needs.preflight.outputs.changes_rust }}
# We need to set this to rather long to allow the snapshot to be created, but the average time
# should be much lower.
timeout-minutes: 60
timeout-minutes: 120
needs: [preflight]
container:
image: ${{ needs.preflight.outputs.IMAGE }}
Expand Down Expand Up @@ -106,12 +106,14 @@ jobs:
./try-runtime create-snapshot --uri ${{ matrix.uri }} snapshot.raw

- name: Build Runtime
if: ${{ github.event_name != 'schedule' }}
id: required1
run: |
echo "---------- Building ${{ matrix.package }} runtime ----------"
forklift cargo build --release --locked -p ${{ matrix.package }} --features try-runtime -q

- name: Run Check
if: ${{ github.event_name != 'schedule' }}
id: required2
run: |
echo "Running ${{ matrix.network }} runtime migration check"
Expand All @@ -124,7 +126,7 @@ jobs:
sleep 5

- name: Stop all workflows if failed
if: ${{ failure() && (steps.required1.conclusion == 'failure' || steps.required2.conclusion == 'failure') }}
if: ${{ failure() && github.event_name != 'schedule' && (steps.required1.conclusion == 'failure' || steps.required2.conclusion == 'failure') }}
uses: ./.github/actions/workflow-stopper
with:
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
Expand All @@ -137,7 +139,7 @@ jobs:
name: All runtime migrations passed
# If any new job gets added, be sure to add it to this array
needs: [check-runtime-migration]
if: always() && !cancelled()
if: always() && !cancelled() && github.event_name != 'schedule'
steps:
- run: |
tee resultfile <<< '${{ toJSON(needs) }}'
Expand Down
Loading