Some checks failed
PR Review Automation / review (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Has been cancelled
Test / rust-tests (pull_request) Has been cancelled
Test / frontend-typecheck (pull_request) Has been cancelled
tauri-plugin-stronghold pulls in libsodium-sys-stable which panics at build time if libsodium is not found via pkg-config — it does not compile from source. All builder images and the test job inline apt installs were missing libsodium-dev, breaking every Rust compilation step. - Add libsodium-dev to Dockerfile.linux-amd64 - Add libsodium-dev (host) + libsodium-dev:arm64 (cross target) to Dockerfile.linux-arm64 - Add libsodium-dev to all three Rust jobs in test.yml - Add inline apt-get install to linux-amd64 and linux-arm64 Build steps in auto-tag.yml and release-beta.yml (bridges the timing race between build-images and auto-tag triggering on the same push) - Add SODIUM_LIB_DIR + SODIUM_STATIC to Windows Build env (Dockerfile already pre-builds libsodium; this tells the crate where to find it)
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
# Pre-baked builder for Linux amd64 Tauri releases.
|
|
# All system dependencies are installed once here; CI jobs skip apt-get entirely.
|
|
# Rebuild when: Rust toolchain version changes, webkit2gtk/gtk major version changes,
|
|
# Node.js major version changes, OpenSSL major version changes (used via OPENSSL_STATIC=1),
|
|
# or Tauri CLI version changes that affect bundler system deps.
|
|
# Tag format: rust<VER>-node<VER>
|
|
FROM rust:1.88-slim
|
|
|
|
RUN apt-get update -qq \
|
|
&& apt-get install -y -qq --no-install-recommends \
|
|
ca-certificates \
|
|
libwebkit2gtk-4.1-dev \
|
|
libssl-dev \
|
|
libgtk-3-dev \
|
|
libayatana-appindicator3-dev \
|
|
librsvg2-dev \
|
|
libsodium-dev \
|
|
patchelf \
|
|
pkg-config \
|
|
curl \
|
|
perl \
|
|
jq \
|
|
git \
|
|
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# tea (Gitea CLI) can be installed if needed:
|
|
# RUN curl -sL https://dl.gitea.com/tea/master/tea-master-linux-amd64 -o /usr/local/bin/tea \
|
|
# && chmod +x /usr/local/bin/tea
|
|
|
|
RUN rustup target add x86_64-unknown-linux-gnu \
|
|
&& rustup component add rustfmt clippy
|