Skip to content

Commit

Permalink
chore: Update rust CI version
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeRosa committed Jan 3, 2024
1 parent 69f7c27 commit f85cb88
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hermes/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@ VERSION 0.7

# Set up our target toolchains, and copy our files.
builder:
FROM github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.12+rust-base
FROM github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.13+rust-base

DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.12+SETUP --toolchain=rust-toolchain.toml
DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.13+SETUP --toolchain=rust-toolchain.toml

COPY --dir .cargo .config Cargo.* clippy.toml deny.toml rustfmt.toml bin crates .

# Test rust build container - Use best architecture host tools.
check-hosted:
FROM +builder

DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.12+CHECK
DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.13+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.
check-all-hosts:
check-all-hosts:
BUILD --platform=linux/amd64 --platform=linux/arm64 +check-hosted

build-hosted:
ARG TARGETPLATFORM

# Build the service
FROM +builder

DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.12+BUILD --libs="cardano-chain-follower" --bins="hermes/hermes"

DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.12+SMOKE_TEST --bin=hermes
DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.13+BUILD --libs="cardano-chain-follower" --bins="hermes/hermes"

DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.13+SMOKE_TEST --bin=hermes

SAVE ARTIFACT target/$TARGETARCH/doc doc
SAVE ARTIFACT target/$TARGETARCH/release/hermes hermes

# 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.
build-all-hosts:
build-all-hosts:
BUILD --platform=linux/amd64 --platform=linux/arm64 +build-hosted

## -----------------------------------------------------------------------------
Expand Down

0 comments on commit f85cb88

Please sign in to comment.