WIP: Add rust logic for the plater physics
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
FROM rust:1.84.1 AS lib_builder
|
||||
RUN apt-get update -y && apt-get install -y gcc musl-dev build-essential pkg-config cmake
|
||||
RUN rustup toolchain install stable
|
||||
WORKDIR /src
|
||||
COPY rust/ .
|
||||
RUN cargo build
|
||||
|
||||
FROM ghcr.io/allanger/dumb-downloader as dudo
|
||||
RUN apt-get update -y && apt-get install unzip -y
|
||||
ENV RUST_LOG=info
|
||||
@@ -18,6 +25,7 @@ FROM ubuntu as builder
|
||||
RUN apt-get update -y && apt-get install fontconfig -y
|
||||
WORKDIR /src
|
||||
COPY --from=dudo /out/godot /usr/bin/godot
|
||||
COPY --from=lib_builder /src/target/debug/libopen_strike_2.so /src/rust/target/debug/libopen_strike_2.so
|
||||
RUN mkdir -p /root/.local/share/godot/export_templates/4.3.stable/
|
||||
COPY --from=dudo /out/templates /root/.local/share/godot/export_templates/4.3.stable
|
||||
COPY . .
|
||||
|
Reference in New Issue
Block a user