mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-23 17:28:23 +00:00
fix: Update Rust toolchain and Docker build dependencies (#156)
## Summary - Upgraded Rust toolchain from 1.87 to 1.88 for latest compiler improvements - Updated Docker build environment with latest paritytech base image and build tools - Fixed node branding and support URL to reflect DataHaven project ## Changes ### Rust Toolchain Update (`rust-toolchain.toml`) - Upgraded from Rust 1.87 to 1.88 ### Docker Build Environment (`Dockerfile`) - Updated base image from `paritytech/ci-unified:bullseye-1.85.0` to `bullseye-1.88.0` - Upgraded mold linker from v2.39.0 to v2.40.4 for faster builds - Added protoc v21.12 for protobuf compilation support - Added libpq-dev dependency for PostgreSQL integration - Updated cargo-chef from 0.1.71 to 0.1.72 --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a9d0f7157a
commit
6fe4f34c4c
4 changed files with 13 additions and 7 deletions
2
.github/workflows/DOCKER-PROD.yml
vendored
2
.github/workflows/DOCKER-PROD.yml
vendored
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
with:
|
||||
ref: ${{ github.event.inputs.branch || github.ref }}
|
||||
|
||||
- uses: ./.github/workflows/actions/cleanup-runner
|
||||
# Cleanup-runner skipped on self-hosted runners (bare-metal manages disk space externally)
|
||||
|
||||
- name: Docker meta (dispatch)
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
|
|
|
|||
|
|
@ -1,25 +1,31 @@
|
|||
# --- Setup Build Environment ---
|
||||
FROM docker.io/paritytech/ci-unified:bullseye-1.85.0 AS base
|
||||
FROM docker.io/paritytech/ci-unified:bullseye-1.88.0 AS base
|
||||
|
||||
ARG MOLD_VERSION=2.39.0
|
||||
ARG MOLD_VERSION=2.40.4
|
||||
ARG PROTOC_VER=21.12
|
||||
ARG SCCACHE_VERSION=0.10.0
|
||||
ARG FAST_RUNTIME=FALSE
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
xz-utils \
|
||||
clang \
|
||||
libpq-dev \
|
||||
&& echo "Installing mold v${MOLD_VERSION}..." \
|
||||
&& curl -Lo mold.tar.gz "https://github.com/rui314/mold/releases/download/v${MOLD_VERSION}/mold-${MOLD_VERSION}-x86_64-linux.tar.gz" \
|
||||
&& tar -xf mold.tar.gz --strip-components=1 -C /usr/local \
|
||||
&& rm mold.tar.gz \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& echo "Installing protoc v${PROTOC_VER}..." \
|
||||
&& curl -Lo protoc.zip "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip" \
|
||||
&& unzip -q protoc.zip -d /usr/local/ \
|
||||
&& rm protoc.zip \
|
||||
&& echo "Installing sccache v${SCCACHE_VERSION}..." \
|
||||
&& curl -Lo sccache.tar.gz "https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" \
|
||||
&& tar -xf sccache.tar.gz --strip-components=1 -C /usr/local/bin sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache \
|
||||
&& rm sccache.tar.gz
|
||||
|
||||
RUN cargo install cargo-chef --version 0.1.71 --locked
|
||||
RUN cargo install cargo-chef --version 0.1.72 --locked
|
||||
|
||||
ENV RUSTC_WRAPPER=sccache \
|
||||
SCCACHE_DIR=/usr/local/sccache \
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ pub struct ProviderOptions {
|
|||
|
||||
impl SubstrateCli for Cli {
|
||||
fn impl_name() -> String {
|
||||
"Substrate Node".into()
|
||||
"DataHaven Node".into()
|
||||
}
|
||||
|
||||
fn impl_version() -> String {
|
||||
|
|
@ -81,7 +81,7 @@ impl SubstrateCli for Cli {
|
|||
}
|
||||
|
||||
fn support_url() -> String {
|
||||
"support.anonymous.an".into()
|
||||
"https://github.com/datahaven-xyz/datahaven/issues/new".into()
|
||||
}
|
||||
|
||||
fn copyright_start_year() -> i32 {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[toolchain]
|
||||
channel = "1.87"
|
||||
channel = "1.88"
|
||||
components = [
|
||||
"cargo",
|
||||
"clippy",
|
||||
|
|
|
|||
Loading…
Reference in a new issue