9
9
10
10
jobs :
11
11
supernova :
12
- runs-on : [self-hosted, Linux, X64, benchmark-v1]
12
+ runs-on : ubuntu-latest
13
13
14
14
permissions :
15
15
contents : write
16
16
17
17
services :
18
18
gnoland :
19
- image : ghcr.io/gnolang/gno:latest
19
+ image : ghcr.io/gnolang/gno/gnoland:nightly
20
20
# keep the container running
21
- options : --workdir /opt/gno/src/gno.land -it --entrypoint "bash "
21
+ options : --workdir /gnoroot -it --entrypoint "sh "
22
22
ports :
23
23
- 26657:26657
24
24
- 36657:36657
@@ -28,27 +28,25 @@ jobs:
28
28
29
29
- name : setup and start gnoland chain
30
30
run : |
31
- docker exec ${{ job.services.gnoland.id }} gnoland start -skip-start=true
32
- docker exec ${{ job.services.gnoland.id }} sed -i 's#laddr =.*:26657.*#laddr = "tcp://0.0.0.0:26657"#g' testdir /config/config.toml
33
- docker exec ${{ job.services.gnoland.id }} sed -i 's#skip_timeout_commit = false#skip_timeout_commit = true#g' testdir /config/config.toml
34
- docker exec -dit ${{ job.services.gnoland.id }} gnoland start
31
+ docker exec ${{ job.services.gnoland.id }} gnoland config init
32
+ docker exec ${{ job.services.gnoland.id }} sed -i 's#laddr =.*:26657.*#laddr = "tcp://0.0.0.0:26657"#g' gnoland-data /config/config.toml
33
+ docker exec ${{ job.services.gnoland.id }} sed -i 's#skip_timeout_commit = false#skip_timeout_commit = true#g' gnoland-data /config/config.toml
34
+ docker exec -dit ${{ job.services.gnoland.id }} gnoland start -lazy
35
35
36
36
- name : download supernova
37
37
run : |
38
38
rm -rf /tmp/main.zip /tmp/supernova-main
39
-
40
- export SUPERNOVA_VERSION=1.0.0
39
+ export SUPERNOVA_VERSION=1.3.1
41
40
wget -c https://github.com/gnolang/supernova/releases/download/v${SUPERNOVA_VERSION}/supernova_${SUPERNOVA_VERSION}_linux_amd64.tar.gz -O - | tar -xz -C /tmp
42
- # install supernova scripts
43
- wget -O /tmp/main.zip https://github.com/gnolang/supernova/archive/refs/heads/main.zip
44
- unzip -d /tmp/ /tmp/main.zip
45
- cp -r /tmp/supernova-main/scripts .
46
41
42
+ - name : wait Gno to be ready (sleep)
43
+ run : |
44
+ sleep 20
45
+
47
46
- name : run supernova
48
47
run : |
49
- sleep 10
50
- curl -v http://localhost:26657/status
51
- /tmp/supernova -sub-accounts 10 -transactions 1000 -url http://localhost:26657 -mnemonic "source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast" -output result.json
48
+ curl -v http://127.0.0.1:26657/status
49
+ /tmp/supernova -sub-accounts 10 -transactions 1000 -url http://127.0.0.1:26657 -mnemonic "source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast" -output result.json > /dev/null 2>&1
52
50
53
51
- name : archive supernova result
54
52
uses : actions/upload-artifact@v3
0 commit comments