-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (53 loc) · 1.74 KB
/
zebra.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
name: zebra
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *' # Every day at 6:00 AM UTC.
jobs:
build-zebra:
runs-on: ubuntu-latest
outputs:
commit-hash: ${{ steps.commit-hash.outputs.commit-hash }}
steps:
- uses: actions/checkout@v3
with:
repository: ZcashFoundation/zebra
- name: Build Zebra and download artifacts
run: cargo build --release
- name: Grab short commit hash and store in env
id: commit-hash
run: echo commit-hash=$(git log -n 1 --pretty=format:"%h") >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v3
with:
name: node-executable
path: ./target/release/zebrad
build-ziggurat:
uses: runziggurat/ziggurat-core/.github/workflows/build-ziggurat.yml@main
run-test-suite:
runs-on: ubuntu-latest
needs: [ build-zebra, build-ziggurat ]
steps:
- uses: actions/download-artifact@v3
with:
name: node-executable
path: ./
- run: chmod +x zebrad
- name: Create Ziggurat config file
run: |
mkdir ~/.ziggurat/
echo 'kind = "zebra"' > ~/.ziggurat/config.toml
echo 'path = "/home/runner/work/zcash/zcash"' >> ~/.ziggurat/config.toml
echo 'start_command = "./zebrad start"' >> ~/.ziggurat/config.toml
- name: Run Ziggurat test suite
uses: runziggurat/ziggurat-core@main
with:
node-name: zebrad
commit-hash: ${{ needs.build-zebra.outputs.commit-hash }}
process-results:
needs: [ run-test-suite ]
uses: runziggurat/ziggurat-core/.github/workflows/process-results.yml@main
with:
name: zebra
repository: zcash
secrets:
gcp_credentials: ${{ secrets.GCP_CREDENTIALS }}