Skip to content
Snippets Groups Projects
Verified Commit 47c7104e authored by Louis's avatar Louis :fire:
Browse files

Include rust, emscripten, wasm toolchain

parent f1ea3b02
No related branches found
No related tags found
No related merge requests found
FROM debian:12.8-slim
FROM cr.weirdboi.dev/base/rust:1-82-node-22
ARG PLATFORM="linux.x86_64"
ARG GODOT_VERSION="4.3-stable"
ARG BUTLER_VERSION="15.12.0"
RUN apt-get update \
&& apt-get install -y wget zip unzip libfontconfig1 \
&& apt-get install -y git libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
COPY commands/godot_build.sh /usr/bin/godot_build
......@@ -16,6 +16,17 @@ COPY commands/godot_project_title.sh /usr/bin/godot_project_title
COPY commands/butler_install.sh /usr/bin/butler_install
COPY commands/butler_upload.sh /usr/bin/butler_upload
COPY commands/emsdk_install.sh /usr/bin/emsdk_install
RUN rustup component add rust-src --toolchain nightly && \
rustup target add wasm32-unknown-emscripten --toolchain nightly
RUN chmod +x /usr/bin/godot_* /usr/bin/butler_*
RUN godot_install $GODOT_VERSION $PLATFORM
RUN butler_install $BUTLER_VERSION
\ No newline at end of file
RUN butler_install $BUTLER_VERSION
ENV EMSDK=/usr/bin/emsdk
RUN emsdk_install "${EMSDK}"
ENV EMSDK_NODE="${EMSDK}/node/20.18.0_64bit/bin/node"
ENV PATH="${EMSDK}:${EMSDK}/upstream/emscripten:${PATH}"
\ No newline at end of file
## Godot Builder
A base debian image, configured with tools and helpers required to build godot games in CI
A base debian image, configured with tools and helpers required to build godot games in CI.
Additionally includes all tools & dependencies to build web content with Node, and Rust extensions
with Rust & emscripten
### Commands
......
#!/usr/bin/env bash
INSTALL_DIR="$1"
FULL_DIR="$INSTALL_DIR/emsdk"
mkdir -p "$FULL_DIR"
git clone https://github.com/emscripten-core/emsdk.git "$FULL_DIR"
cd "$FULL_DIR"
"$FULL_DIR/emsdk" install 3.1.62
"$FULL_DIR/emsdk" activate 3.1.62
source "$FULL_DIR/emsdk.sh"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment