Merge pull request 'fix(ci): enable libsodium pkg-config feature across all platforms' (#104) from fix/libsodium-use-pkg-config into beta
Some checks failed
Release Beta / autotag (push) Successful in 10s
Release Beta / changelog (push) Successful in 1m32s
Test / frontend-tests (push) Successful in 1m47s
Test / frontend-typecheck (push) Successful in 1m56s
Release Beta / build-macos-arm64 (push) Successful in 4m35s
Release Beta / build-linux-amd64 (push) Failing after 4m37s
Release Beta / build-windows-amd64 (push) Failing after 5m6s
Release Beta / build-linux-arm64 (push) Failing after 5m16s
Test / rust-fmt-check (push) Successful in 15m8s
Test / rust-clippy (push) Successful in 16m56s
Test / rust-tests (push) Successful in 19m2s

Reviewed-on: #104
This commit is contained in:
sarman 2026-06-14 14:23:33 +00:00
commit bce0a3e696
4 changed files with 7 additions and 3 deletions

View File

@ -444,9 +444,8 @@ jobs:
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: x86_64-w64-mingw32-gcc CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: x86_64-w64-mingw32-gcc
OPENSSL_NO_VENDOR: "0" OPENSSL_NO_VENDOR: "0"
OPENSSL_STATIC: "1" OPENSSL_STATIC: "1"
SODIUM_LIB_DIR: /usr/x86_64-w64-mingw32/lib PKG_CONFIG_x86_64_pc_windows_gnu: x86_64-w64-mingw32-pkg-config
SODIUM_STATIC: "1" PKG_CONFIG_ALLOW_CROSS: "1"
SODIUM_USE_PKG_CONFIG: "no"
run: | run: |
npm ci --legacy-peer-deps npm ci --legacy-peer-deps
CI=true npx tauri build --target x86_64-pc-windows-gnu CI=true npx tauri build --target x86_64-pc-windows-gnu

View File

@ -45,6 +45,7 @@ jobs:
libayatana-appindicator3-dev \ libayatana-appindicator3-dev \
librsvg2-dev \ librsvg2-dev \
libdbus-1-dev \ libdbus-1-dev \
libsodium-dev \
pkg-config pkg-config
- name: Install Rust components - name: Install Rust components
run: rustup component add rustfmt run: rustup component add rustfmt
@ -96,6 +97,7 @@ jobs:
libayatana-appindicator3-dev \ libayatana-appindicator3-dev \
librsvg2-dev \ librsvg2-dev \
libdbus-1-dev \ libdbus-1-dev \
libsodium-dev \
pkg-config pkg-config
- name: Install clippy - name: Install clippy
run: rustup component add clippy run: rustup component add clippy
@ -133,6 +135,7 @@ jobs:
libayatana-appindicator3-dev \ libayatana-appindicator3-dev \
librsvg2-dev \ librsvg2-dev \
libdbus-1-dev \ libdbus-1-dev \
libsodium-dev \
pkg-config pkg-config
- run: cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1 - run: cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1

1
src-tauri/Cargo.lock generated
View File

@ -6545,6 +6545,7 @@ dependencies = [
"http 1.4.1", "http 1.4.1",
"infer 0.15.0", "infer 0.15.0",
"lazy_static", "lazy_static",
"libsodium-sys-stable",
"lopdf", "lopdf",
"mockito", "mockito",
"portable-pty", "portable-pty",

View File

@ -59,6 +59,7 @@ http = "1.4"
flate2 = { version = "1", features = ["rust_backend"] } flate2 = { version = "1", features = ["rust_backend"] }
serde_yaml = "0.9" serde_yaml = "0.9"
portable-pty = "0.8" portable-pty = "0.8"
libsodium-sys-stable = { version = "1.24", features = ["use-pkg-config"] }