Skip to content

Commit

Permalink
fix(ci): Upgrade Earthly to 0.8 and make imported names consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenj committed May 9, 2024
1 parent 650e5bd commit a66a91e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
10 changes: 5 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:fix/improve-rust-builder-sj AS mdlint
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:fix/improve-rust-builder-sj AS cspell
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:fix/improve-rust-builder-sj AS mdlint-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:fix/improve-rust-builder-sj AS cspell-ci

FROM debian:stable-slim

# cspell: words livedocs sitedocs

# check-markdown : markdown check using catalyst-ci.
check-markdown:
DO mdlint+CHECK
DO mdlint-ci+CHECK

# markdown-check-fix : markdown check and fix using catalyst-ci.
markdown-check-fix:
LOCALLY

DO mdlint+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix
DO mdlint-ci+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix

# check-spelling : Check spelling in this repo inside a container.
check-spelling:
DO cspell+CHECK
DO cspell-ci+CHECK

# spell-list-words : List words in a dictionary
spell-list-words:
Expand Down
26 changes: 16 additions & 10 deletions docs/Earthfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
# Set the Earthly version to 0.7
VERSION 0.7
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:fix/improve-rust-builder-sj AS docs-ci

IMPORT .. AS repo
IMPORT ../hermes AS hermes
IMPORT ../wasm/wasi AS wasi
IMPORT ../wasm AS wasm

# cspell: words mkdocs runable

# Copy all the source we need to build the docs
src:
# Common src setup
DO github.com/input-output-hk/catalyst-ci/earthly/docs:v2.9.5+SRC
DO docs-ci+SRC

# Now copy into that any artifacts we pull from the builds.
COPY --dir ../+repo-docs/repo /docs/includes
COPY --dir repo+repo-docs/repo /docs/includes
# copy Rust docs
COPY ./../hermes+build/doc /docs/src/api/rust-docs
COPY hermes+build/doc /docs/src/api/rust-docs
# Copy the WASM Component model API Docs
COPY --dir ./../wasm/wasi+build/wasi-hermes-docs /docs/src/api/wasi-hermes
COPY --dir wasi+build/wasi-hermes-docs /docs/src/api/wasi-hermes
# Copy the Hermes JSON Schemas and Examples
COPY --dir ./../hermes+json-schemas/schemas /docs/includes/
COPY --dir ./../wasm+wasi-src/wasi /docs/includes/
COPY --dir hermes+json-schemas/schemas /docs/includes/
COPY --dir wasm+wasi-src/wasi /docs/includes/


# Build the docs here.
docs:
FROM +src

DO github.com/input-output-hk/catalyst-ci/earthly/docs:v2.9.5+BUILD
DO docs-ci+BUILD

# Make a locally runable container that can serve the docs.
local:
# Build a self contained service to show built docs locally.
DO github.com/input-output-hk/catalyst-ci/earthly/docs:v2.9.5+PACKAGE
DO docs-ci+PACKAGE

# Copy the static pages into the container
COPY +docs/ /usr/share/nginx/html
Expand Down

0 comments on commit a66a91e

Please sign in to comment.