fix(ci): use SODIUM_LIB_DIR to bypass pkg-config detection #105

Merged
sarman merged 4 commits from fix/libsodium-direct-path into beta 2026-06-14 20:04:47 +00:00
2 changed files with 13 additions and 2 deletions
Showing only changes of commit 863868b2fc - Show all commits

View File

@ -344,6 +344,7 @@ jobs:
- name: Build
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
run: |
npm ci --legacy-peer-deps
CI=true npx tauri build --target x86_64-unknown-linux-gnu
@ -444,8 +445,7 @@ jobs:
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: x86_64-w64-mingw32-gcc
OPENSSL_NO_VENDOR: "0"
OPENSSL_STATIC: "1"
PKG_CONFIG_x86_64_pc_windows_gnu: x86_64-w64-mingw32-pkg-config
PKG_CONFIG_ALLOW_CROSS: "1"
SODIUM_LIB_DIR: /usr/x86_64-w64-mingw32/lib
run: |
npm ci --legacy-peer-deps
CI=true npx tauri build --target x86_64-pc-windows-gnu
@ -634,6 +634,7 @@ jobs:
OPENSSL_NO_VENDOR: "0"
OPENSSL_STATIC: "1"
APPIMAGE_EXTRACT_AND_RUN: "1"
SODIUM_LIB_DIR: /usr/lib/aarch64-linux-gnu
run: |
npm ci --legacy-peer-deps
CI=true npx tauri build --target aarch64-unknown-linux-gnu --bundles deb,rpm

View File

@ -63,7 +63,11 @@ jobs:
- name: Update version from Git
run: node scripts/update-version.mjs
- run: cargo generate-lockfile --manifest-path src-tauri/Cargo.toml
env:
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
- run: cargo fmt --manifest-path src-tauri/Cargo.toml --check
env:
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
rust-clippy:
runs-on: ubuntu-latest
@ -102,6 +106,8 @@ jobs:
- name: Install clippy
run: rustup component add clippy
- run: cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings
env:
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
rust-tests:
runs-on: ubuntu-latest
@ -138,9 +144,13 @@ jobs:
libsodium-dev \
pkg-config
- run: cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1
env:
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
- name: Run shell module tests
run: 'cargo test --manifest-path src-tauri/Cargo.toml "shell::" -- --test-threads=1'
env:
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
frontend-typecheck:
runs-on: ubuntu-latest