Skip to content

Commit 40b425a

Browse files
committed
Read blocks from file in vm-replay workflow
1 parent e6b053f commit 40b425a

File tree

2 files changed

+17
-53
lines changed

2 files changed

+17
-53
lines changed

.github/workflows/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
schedule:
55
# At the end of every day
66
- cron: "0 0 * * *"
7-
pull_request:
7+
# pull_request:
88

99
env:
1010
RANGE_SIZE: 2

.github/workflows/vm-replay.yml

Lines changed: 16 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,28 @@ name: VM Block Run
22

33
on:
44
workflow_dispatch:
5-
# pull_request:
5+
pull_request:
66

77

88
env:
99
RANGE_SIZE: 2
1010

1111
jobs:
12+
13+
setup:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
blocks: ${{ steps.parse-blocks.outputs.blocks_list }}
17+
steps:
18+
name: Parse blocks file
19+
id: parse-blocks
20+
run: |
21+
content=`cat ./blocks.txt`
22+
echo "::set-output name=blocks_list::$(jq 'split(",")' -Rc <(echo '$content'))"
23+
24+
1225
run:
26+
needs: setup
1327
runs-on: ubuntu-latest
1428
env:
1529
LLVM_SYS_191_PREFIX: /usr/lib/llvm-19/
@@ -20,57 +34,7 @@ jobs:
2034
strategy:
2135
max-parallel: 25
2236
matrix:
23-
block:
24-
- 740000
25-
- 741000
26-
# - 742000
27-
# - 743000
28-
# - 744000
29-
# - 745000
30-
# - 746000
31-
# - 747000
32-
# - 748000
33-
# - 749000
34-
# - 800000
35-
# - 800050
36-
# - 800100
37-
# - 800150
38-
# - 800200
39-
# - 800250
40-
# - 800300
41-
# - 800350
42-
# - 800400
43-
# - 800450
44-
# - 900000
45-
# - 900100
46-
# - 900200
47-
# - 900300
48-
# - 900400
49-
# - 900500
50-
# - 900600
51-
# - 900700
52-
# - 900800
53-
# - 900900
54-
# - 1000400
55-
# - 1000500
56-
# - 1002000
57-
# - 1003000
58-
# - 1004000
59-
# - 1005000
60-
# - 1006000
61-
# - 1007000
62-
# - 1008000
63-
# - 1009000
64-
# - 1100400
65-
# - 1100500
66-
# - 1102000
67-
# - 1103000
68-
# - 1104000
69-
# - 1105000
70-
# - 1106000
71-
# - 1107000
72-
# - 1108000
73-
# - 1109000
37+
block: ${{ fromJson(needs.setup.outputs.blocks) }}
7438
fail-fast: false
7539
defaults:
7640
run:

0 commit comments

Comments
 (0)