From 4d6fb8e1e3041b3ff0adba614c851b393c343582 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Thu, 27 Apr 2023 14:50:06 -0700 Subject: [PATCH] ci: Fix broken release workflow. (#819) * Add nextgen. * Test PR. * Comment out workflow. --- .github/workflows/moon.yml | 1 + .github/workflows/rust-stub.yml | 1 + .github/workflows/rust.yml | 1 + scripts/Dockerfile | 6 ++++++ 4 files changed, 9 insertions(+) diff --git a/.github/workflows/moon.yml b/.github/workflows/moon.yml index 5868f363149..c135f590672 100644 --- a/.github/workflows/moon.yml +++ b/.github/workflows/moon.yml @@ -10,6 +10,7 @@ on: - .github/workflows/moon.yml - .moon/*.yml - crates/** + - nextgen/** - packages/** - website/** - package.json diff --git a/.github/workflows/rust-stub.yml b/.github/workflows/rust-stub.yml index f351ea74aba..d3b2b2ca2fd 100644 --- a/.github/workflows/rust-stub.yml +++ b/.github/workflows/rust-stub.yml @@ -6,6 +6,7 @@ on: - .cargo/config.toml - .github/workflows/rust.yml - crates/** + - nextgen/** - tests/** - Cargo.lock - Cargo.toml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index be085aa65de..20f458966e4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,6 +8,7 @@ on: - .cargo/config.toml - .github/workflows/rust.yml - crates/** + - nextgen/** - tests/** - Cargo.lock - Cargo.toml diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 6e4fa435642..a7ceea9ce89 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -21,6 +21,7 @@ RUN cargo install cargo-chef --version ^0.1 FROM base-gnu AS plan-gnu COPY Cargo* . COPY crates crates +COPY nextgen nextgen RUN cargo chef prepare --recipe-path recipe.json FROM base-gnu AS build-gnu @@ -29,6 +30,7 @@ COPY --from=plan-gnu /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json COPY Cargo* . COPY crates crates +COPY nextgen nextgen RUN cargo build --bin moon --release RUN target/release/moon --version RUN set -ex; \ @@ -68,6 +70,7 @@ RUN rustup update && rustup target add x86_64-unknown-linux-musl FROM base-musl-amd64 AS plan-musl-amd64 COPY Cargo* . COPY crates crates +COPY nextgen nextgen RUN cargo chef prepare --recipe-path recipe.json FROM base-musl-amd64 AS build-musl-amd64 @@ -76,6 +79,7 @@ COPY --from=plan-musl-amd64 /app/recipe.json recipe.json RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json COPY Cargo* . COPY crates crates +COPY nextgen nextgen RUN cargo build --bin moon --release --target x86_64-unknown-linux-musl RUN target/x86_64-unknown-linux-musl/release/moon --version RUN mkdir -p /out && cp --parents target/*/release/moon /out/ @@ -115,6 +119,7 @@ RUN rustup update && rustup target add aarch64-unknown-linux-musl FROM base-musl-arm64 AS plan-musl-arm64 COPY Cargo* . COPY crates crates +COPY nextgen nextgen RUN cargo chef prepare --recipe-path recipe.json FROM base-musl-arm64 AS build-musl-arm64 @@ -123,6 +128,7 @@ COPY --from=plan-musl-arm64 /app/recipe.json recipe.json RUN cargo chef cook --release --target aarch64-unknown-linux-musl --recipe-path recipe.json COPY Cargo* . COPY crates crates +COPY nextgen nextgen RUN cargo build --bin moon --release --target aarch64-unknown-linux-musl RUN target/aarch64-unknown-linux-musl/release/moon --version RUN mkdir -p /out && cp --parents target/*/release/moon /out/