Skip to content

Commit

Permalink
ci: Fix broken release workflow. (#819)
Browse files Browse the repository at this point in the history
* Add nextgen.

* Test PR.

* Comment out workflow.
  • Loading branch information
milesj committed May 1, 2023
1 parent 49642b5 commit 4d6fb8e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- .github/workflows/moon.yml
- .moon/*.yml
- crates/**
- nextgen/**
- packages/**
- website/**
- package.json
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rust-stub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- .cargo/config.toml
- .github/workflows/rust.yml
- crates/**
- nextgen/**
- tests/**
- Cargo.lock
- Cargo.toml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- .cargo/config.toml
- .github/workflows/rust.yml
- crates/**
- nextgen/**
- tests/**
- Cargo.lock
- Cargo.toml
Expand Down
6 changes: 6 additions & 0 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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; \
Expand Down Expand Up @@ -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
Expand All @@ -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/
Expand Down Expand Up @@ -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
Expand All @@ -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/
Expand Down

0 comments on commit 4d6fb8e

Please sign in to comment.