-
Notifications
You must be signed in to change notification settings - Fork 15
70 lines (59 loc) · 1.86 KB
/
extrinsics.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
name: Check Runtime and Extrinsics
# This CI checks for changes in Creditcoin runtime and extrinsic ordering
# Controls when the action will run.
on:
pull_request:
branches: [dev]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions: read-all
jobs:
run_extrinsics:
name: Extrinsics
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node Dependencies
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install --ignore-scripts -g @polkadot/metadata-cmp
- name: Set-Up
run: |
sudo apt-get update
sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl protobuf-compiler
- name: Configure rustc version
run: |
source ci/env
echo "RUSTC_VERSION=$RUSTC_VERSION" >> "$GITHUB_ENV"
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUSTC_VERSION }}
target: wasm32-unknown-unknown
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2
- name: Build Release
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Run Extrinsics Ordering
shell: bash
run: |
./scripts/check-extrinsics.sh
#Upload logs if nodes are not connecting.
#head-node.log and release-node.log are created in ./scripts/check-extrinsics.sh
- name: Upload logs
uses: actions/upload-artifact@v3
if: always()
with:
if-no-files-found: warn
name: "extrinsic-logs"
path: |
head-node.log
release-node.log
metadata-cmp-with-mainnet.txt
metadata-cmp-with-testnet.txt