-
Notifications
You must be signed in to change notification settings - Fork 381
52 lines (42 loc) · 1.42 KB
/
check-migrations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Check Migrations
on:
push:
branches: ["master"]
tags:
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-migrations:
continue-on-error: true
runs-on: ubuntu-latest
strategy:
matrix:
runtime:
- astar
- shiden
- shibuya
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install deps
run: sudo apt -y install protobuf-compiler
- name: Install & display rust toolchain
run: rustup show
- name: Check targets are installed correctly
run: rustup target list --installed
- name: Build ${{ matrix.runtime }} runtime
run: cargo build --release --locked --package ${{ matrix.runtime }}-runtime --features try-runtime
- name: Run ${{ matrix.runtime }} Runtime Checks
run: |
PACKAGE_NAME=${{ matrix.runtime }}
RUNTIME_BLOB_NAME=$(echo $PACKAGE_NAME | sed 's/-/_/g').compact.compressed.wasm
RUNTIME_BLOB_PATH=./target/release/wbuild/$PACKAGE_NAME/$RUNTIME_BLOB_NAME
npx @acala-network/chopsticks@beta try-runtime -c ${{ matrix.runtime }} --checks All --runtime $RUNTIME_BLOB_PATH