Skip to content

Commit

Permalink
Create Earthfile
Browse files Browse the repository at this point in the history
  • Loading branch information
minikin committed Aug 23, 2024
1 parent e74dd01 commit 3add2d9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions rust/Earthfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.1.24 AS rust-ci
# Use when debugging cat-ci locally.
# IMPORT ../../catalyst-ci/earthly/rust AS rust-ci

IMPORT ../wasm AS wasm
IMPORT ../wasm/stub-module AS stub-module

# builder : Set up our target toolchains, and copy our files.
builder:
DO rust-ci+SETUP
COPY --dir .cargo .config crates bin schemas .

Check failure on line 13 in rust/Earthfile

View workflow job for this annotation

GitHub Actions / ci / check / run (/home/runner/work/catalyst-libs/catalyst-libs/rust)

Error

The command COPY --dir .cargo .config crates bin schemas . failed: "/schemas": not found
COPY Cargo.toml .
COPY clippy.toml deny.toml rustfmt.toml .

## -----------------------------------------------------------------------------
##
## Standard CI targets.
##
## These targets are discovered and executed automatically by CI.

# check : Run check using the most efficient host tooling
# CI Automated Entry point.
check:
FROM +builder

DO rust-ci+EXECUTE --cmd="/scripts/std_checks.py"

# all-hosts-check : Test which runs check with all supported host tooling.
# Needs qemu or rosetta to run.
# Only used to validate tooling is working across host toolsets.
all-hosts-check:
BUILD --platform=linux/amd64 --platform=linux/arm64 +check

## -----------------------------------------------------------------------------

# local-ci-run: This step simulates the full CI run for local purposes only.
local-ci-run:
BUILD +check
BUILD +build

0 comments on commit 3add2d9

Please sign in to comment.