83 lines (79 loc) · 2.37 KB
/
zcashd.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
71
72
73
74
75
76
77
78
79
80
81
82
83
name: zcashd
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
install-zcashd:
runs-on: ubuntu-latest
steps:
- name: clone zcashd
run: git clone https://github.com/zcash/zcash
- name: build zcashd
run: |
cd zcash
./zcutil/build.sh -j$(nproc)
- uses: actions/upload-artifact@v2
with:
name: zcashd-fetch-params
path: ./zcash/zcutil/fetch-params.sh
- uses: actions/upload-artifact@v2
with:
name: zcashd-executable
path: ./zcash/src/zcashd
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets --no-run
- uses: actions/upload-artifact@v2
with:
name: ziggurat-executable
path: ./target/debug/deps/ziggurat-*
test-zcashd:
runs-on: ubuntu-latest
needs: [ check, install-zcashd ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: zcashd-fetch-params
path: ./zcash
- uses: actions/download-artifact@v3
with:
name: zcashd-executable
path: ./zcash
- uses: actions/download-artifact@v3
with:
name: ziggurat-executable
path: ./ziggurat
- name: Create ~/.ziggurat/config.toml
run: |
mkdir ~/.ziggurat/
touch ~/.ziggurat/config.toml
echo kind = \"zcashd\" >> ~/.ziggurat/config.toml
echo path = \"/home/runner/work/ziggurat/ziggurat/zcash\" >> ~/.ziggurat/config.toml
echo start_command = \"./zcashd -debug=1 -printtoconsole -logips=1 -dnsseed=0 -dns=0 -listenonion=0\" >> ~/.ziggurat/config.toml
- name: Fetch zcashd params
run: |
chmod +x zcash/fetch-params.sh
./zcash/fetch-params.sh
- name: Run ziggurat suite
continue-on-error: true
run: |
rm ./ziggurat/*.d
mv ./ziggurat/ziggurat-* ziggurat_test
chmod +x ziggurat_test
chmod +x zcash/zcashd
./ziggurat_test --test-threads=1 --nocapture