-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (64 loc) · 2.11 KB
/
cumulus-stack-overflow.yaml
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
71
72
73
74
75
76
77
78
name: Daily Workflow
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches:
- feat/cicd
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch Github Release Asset from polkadot
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "paritytech/polkadot"
file: "polkadot"
target: "polkadot"
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Add binaries to PATH
run: |
echo "$GITHUB_WORKSPACE" >> $GITHUB_PATH
chmod +x polkadot
- name: Fetch Github Release Asset from cumulus
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "paritytech/cumulus"
file: "rococo-parachain_runtime(.*)wasm"
target: "./"
regex: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Move test.wasm
run: |
find . -type f -regextype posix-extended -regex '.*/rococo-parachain_runtime.*wasm' -exec bash -c 'mv "$0" ./target/debug/test.wasm' {} \;
- name: Run wasm_injector
run: |
./target/debug/wasm_injector stack-overflow ./target/debug/test.wasm --hexified
- name: Checkout zombienet repository
uses: actions/checkout@v2
with:
repository: paritytech/zombienet
path: zombienet
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: Run zombienet
run: |
cd zombienet/javascript
npm install
npm run build
node ./packages/cli/dist/cli.js --provider native spawn ../../tests/0003-parachains-pvf-memory-allocation-bad.toml
node ./packages/cli/dist/cli.js --provider native test ../../tests/0003-parachains-pvf-memory-allocation-bad.zndsl