File tree 3 files changed +36
-4
lines changed
3 files changed +36
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Check cbor examples
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
8
+ schedule :
9
+ # Everyday at 4:00 AM
10
+ - cron : " 0 4 * * *"
11
+
12
+ jobs :
13
+ check-cbor-examples :
14
+ name : Check cbor examples
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+
19
+ - name : Install nix
20
+ uses : cachix/install-nix-action@V27
21
+ with :
22
+ extra_nix_config : |
23
+ accept-flake-config = true
24
+ log-lines = 1000
25
+
26
+ - name : Enter nix shell
27
+ uses : nicknovitski/nix-develop@v1
28
+
29
+ - run : |
30
+ cd src/api
31
+ cddl <(cat cddl/local-state-query.cddl cddl/getSystemStart.cddl) validate <(xxd -r -p examples/getSystemStart/result.cbor)
Original file line number Diff line number Diff line change 25
25
mdbook-katex
26
26
mdbook-alerts
27
27
mdbook-toc
28
+
29
+ # to validate cbor / cddl
30
+ cddl
31
+ xxd
28
32
] ;
29
33
phases = [ "unpackPhase" "buildPhase" ] ;
30
34
buildPhase = ''
31
35
mdbook build -d $out
32
36
'' ;
33
37
}
34
38
) ;
35
- defaultPackage = packages . mdbook ;
39
+ packages . default = packages . mdbook ;
36
40
}
37
41
) ;
38
42
}
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ acquireFailurePointNotOnChain = 1
18
18
failure = acquireFailurePointTooOld
19
19
/ acquireFailurePointNotOnChain
20
20
21
- $query = any
22
- $result = any
23
-
24
21
msgAcquire = [0, point]
25
22
/ [8]
26
23
/ [10]
You can’t perform that action at this time.
0 commit comments