Skip to content

Commit b915d22

Browse files
committed
cleanup Earthfiles, add cddl-check target
1 parent ec14641 commit b915d22

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

Earthfile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,3 @@ repo-docs:
4141
COPY --dir *.md LICENSE-APACHE LICENSE-MIT .
4242

4343
SAVE ARTIFACT /repo repo
44-
45-
cddlc:
46-
FROM ruby:3.3.0-alpine
47-
48-
WORKDIR /cddl
49-
50-
RUN gem install cddlc
51-
52-
COPY ./docs/src/architecture/08_concepts/catalyst_voting/cddl/gen_vote_tx.cddl .
53-
COPY ./docs/src/architecture/08_concepts/catalyst_voting/cddl/vote_tx_v2.cddl .
54-
55-
RUN cddlc -u2tcddl vote_tx_v2.cddl
56-
57-
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
VERSION 0.8
2+
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cddl:feat/cddl AS cddl-ci
4+
5+
check-cddl:
6+
FROM cddl-ci+cddl-base
7+
8+
WORKDIR /cddl
9+
10+
COPY ./docs/src/architecture/08_concepts/catalyst_voting/cddl/gen_vote_tx.cddl .
11+
COPY ./docs/src/architecture/08_concepts/catalyst_voting/cddl/vote_tx_v2.cddl .
12+
13+
RUN --no-cache cddlc -2tcddl vote_tx_v2.cddl

0 commit comments

Comments
 (0)