forked from zcash/zips
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.25 KB
/
render.yml
File metadata and controls
50 lines (40 loc) · 1.25 KB
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
name: Check Renderability
on:
pull_request:
jobs:
render:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5.0.1
with:
fetch-depth: 3
- name: Verify nonexistence of `rendered`
shell: bash
run: |
if [ -e rendered ]; then exit 1; fi
- name: Set git config
run: git config --global --add safe.directory /github/workspace
- name: Compile ZIPs
uses: ./.github/actions/render
render-protocol:
needs: render
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5.0.1
with:
fetch-depth: 100
- name: Verify nonexistence of `rendered` and `base_ref`
shell: bash
run: |
if [ -e rendered ]; then exit 1; fi
if [ -e base_ref ]; then exit 1; fi
- name: Set git config
run: git config --global --add safe.directory /github/workspace
- name: Set base ref
run: |
git show --format=%H --no-notes --no-patch "HEAD~1" -- |tee base_ref
if ! ( grep -E '^[0-9a-f]{40}$' base_ref ); then exit 1; fi
- name: Compile Protocol Specification
uses: ./.github/actions/render-protocol