@@ -17,54 +17,54 @@ jobs:
17
17
fail-fast : false
18
18
runs-on : ${{ matrix.os }}
19
19
steps :
20
- - uses : actions/checkout@v4
20
+ - uses : actions/checkout@v4
21
21
22
- - name : Cache of Cargo
23
- uses : actions/cache@v3
24
- with :
25
- path : |
26
- ~/.cargo/bin/
27
- ~/.cargo/registry/index/
28
- ~/.cargo/registry/cache/
29
- ~/.cargo/git/db/
30
- target/
31
- key : ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
32
- restore-keys : |
33
- ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
34
- - name : Build Axon in the development profile
35
- run : |
36
- # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
37
- # related issue: https://github.com/axonweb3/axon/issues/1387
38
- lscpu
39
- # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
40
- PORTABLE=1 USE_SSE=1 cargo build
22
+ - name : Cache of Cargo
23
+ uses : actions/cache@v3
24
+ with :
25
+ path : |
26
+ ~/.cargo/bin/
27
+ ~/.cargo/registry/index/
28
+ ~/.cargo/registry/cache/
29
+ ~/.cargo/git/db/
30
+ target/
31
+ key : ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
32
+ restore-keys : |
33
+ ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
34
+ - name : Build Axon in the development profile
35
+ run : |
36
+ # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
37
+ # related issue: https://github.com/axonweb3/axon/issues/1387
38
+ lscpu
39
+ # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
40
+ PORTABLE=1 USE_SSE=1 cargo build
41
41
42
- - name : Start a single Axon node
43
- env :
44
- LOG_FILE : ${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
45
- run : |
46
- target/debug/axon --version | tee ${{ env.LOG_FILE }}
47
- target/debug/axon init \
48
- --config devtools/chain/config.toml \
49
- --chain-spec devtools/chain/specs/single_node/chain-spec.toml \
50
- | tee -a ${{ env.LOG_FILE }}
51
- target/debug/axon run \
52
- --config devtools/chain/config.toml \
53
- | tee -a ${{ env.LOG_FILE }} &
42
+ - name : Start a single Axon node
43
+ env :
44
+ LOG_FILE : ${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
45
+ run : |
46
+ target/debug/axon --version | tee ${{ env.LOG_FILE }}
47
+ target/debug/axon init \
48
+ --config devtools/chain/config.toml \
49
+ --chain-spec devtools/chain/specs/single_node/chain-spec.toml \
50
+ | tee -a ${{ env.LOG_FILE }}
51
+ target/debug/axon run \
52
+ --config devtools/chain/config.toml \
53
+ | tee -a ${{ env.LOG_FILE }} &
54
54
55
- npx zx <<'EOF'
56
- import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
57
- await retry(3, '6s', () => waitXBlocksPassed('http://127.0.0.1:8000', 2))
58
- EOF
59
- timeout-minutes : 1
55
+ npx zx <<'EOF'
56
+ import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
57
+ await retry(3, '6s', () => waitXBlocksPassed('http://127.0.0.1:8000', 2))
58
+ EOF
59
+ timeout-minutes : 1
60
60
61
- - name : Archive logs
62
- if : failure()
63
- uses : actions/upload-artifact@v4
64
- with :
65
- name : single-axon-node-logs
66
- path : |
67
- ${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
61
+ - name : Archive logs
62
+ if : failure()
63
+ uses : actions/upload-artifact@v4
64
+ with :
65
+ name : single-axon-node-logs
66
+ path : |
67
+ ${{ runner.temp }}/${{ matrix.os }}-single-axon-node.log
68
68
69
69
multi-nodes :
70
70
strategy :
@@ -75,64 +75,64 @@ jobs:
75
75
fail-fast : false
76
76
runs-on : ${{ matrix.os }}
77
77
steps :
78
- - uses : actions/checkout@v4
78
+ - uses : actions/checkout@v4
79
79
80
- - name : Cache of Cargo
81
- uses : actions/cache@v3
82
- with :
83
- path : |
84
- ~/.cargo/bin/
85
- ~/.cargo/registry/index/
86
- ~/.cargo/registry/cache/
87
- ~/.cargo/git/db/
88
- target/
89
- key : ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
90
- restore-keys : |
91
- ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
92
- - name : Build Axon in the development profile
93
- run : |
94
- # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
95
- # related issue: https://github.com/axonweb3/axon/issues/1387
96
- lscpu
97
- # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
98
- PORTABLE=1 USE_SSE=1 cargo build
80
+ - name : Cache of Cargo
81
+ uses : actions/cache@v3
82
+ with :
83
+ path : |
84
+ ~/.cargo/bin/
85
+ ~/.cargo/registry/index/
86
+ ~/.cargo/registry/cache/
87
+ ~/.cargo/git/db/
88
+ target/
89
+ key : ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
90
+ restore-keys : |
91
+ ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-build
92
+ - name : Build Axon in the development profile
93
+ run : |
94
+ # check for AVX2 support by inspecting `/proc/cpuinfo` or running `lscpu`
95
+ # related issue: https://github.com/axonweb3/axon/issues/1387
96
+ lscpu
97
+ # PORTABLE=1 USE_SSE=1 tell rocksdb to target AVX2
98
+ PORTABLE=1 USE_SSE=1 cargo build
99
99
100
- - name : Start multiple Axon nodes
101
- env :
102
- LOG_PATH : ${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes
103
- run : |
104
- mkdir -p ${{ env.LOG_PATH }}
100
+ - name : Start multiple Axon nodes
101
+ env :
102
+ LOG_PATH : ${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes
103
+ run : |
104
+ mkdir -p ${{ env.LOG_PATH }}
105
105
106
- target/debug/axon --version
106
+ target/debug/axon --version
107
107
108
- for id in 1 2 3 4; do
109
- target/debug/axon init \
110
- --config devtools/chain/nodes/node_${id}.toml \
111
- --chain-spec devtools/chain/specs/multi_nodes_short_epoch_len/chain-spec.toml \
112
- > ${{ env.LOG_PATH }}/node_${id}.log
113
- done
108
+ for id in 1 2 3 4; do
109
+ target/debug/axon init \
110
+ --config devtools/chain/nodes/node_${id}.toml \
111
+ --chain-spec devtools/chain/specs/multi_nodes_short_epoch_len/chain-spec.toml \
112
+ > ${{ env.LOG_PATH }}/node_${id}.log
113
+ done
114
114
115
- for id in 1 2 3 4; do
116
- target/debug/axon run \
117
- --config devtools/chain/nodes/node_${id}.toml \
118
- >> ${{ env.LOG_PATH }}/node_${id}.log &
119
- done
115
+ for id in 1 2 3 4; do
116
+ target/debug/axon run \
117
+ --config devtools/chain/nodes/node_${id}.toml \
118
+ >> ${{ env.LOG_PATH }}/node_${id}.log &
119
+ done
120
120
121
- npx zx <<'EOF'
122
- import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
123
- await retry(3, '6s', () => Promise.all([
124
- waitXBlocksPassed('http://127.0.0.1:8001', 4),
125
- waitXBlocksPassed('http://127.0.0.1:8002', 4),
126
- waitXBlocksPassed('http://127.0.0.1:8003', 4),
127
- waitXBlocksPassed('http://127.0.0.1:8004', 4),
128
- ]))
129
- EOF
130
- timeout-minutes : 1
121
+ npx zx <<'EOF'
122
+ import { waitXBlocksPassed } from './devtools/ci/scripts/helper.js'
123
+ await retry(3, '6s', () => Promise.all([
124
+ waitXBlocksPassed('http://127.0.0.1:8001', 4),
125
+ waitXBlocksPassed('http://127.0.0.1:8002', 4),
126
+ waitXBlocksPassed('http://127.0.0.1:8003', 4),
127
+ waitXBlocksPassed('http://127.0.0.1:8004', 4),
128
+ ]))
129
+ EOF
130
+ timeout-minutes : 1
131
131
132
- - name : Archive logs
133
- if : failure()
134
- uses : actions/upload-artifact@v4
135
- with :
136
- name : multi-axon-nodes-logs
137
- path : |
138
- ${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes/
132
+ - name : Archive logs
133
+ if : failure()
134
+ uses : actions/upload-artifact@v4
135
+ with :
136
+ name : multi-axon-nodes-logs
137
+ path : |
138
+ ${{ runner.temp }}/${{ matrix.os }}/multi-axon-nodes/
0 commit comments