fix(ci): unset SODIUM_USE_PKG_CONFIG before cargo builds on all platforms
Some checks failed
PR Review Automation / review (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / rust-tests (pull_request) Has been cancelled
Test / frontend-typecheck (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Has been cancelled
Some checks failed
PR Review Automation / review (pull_request) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / rust-tests (pull_request) Has been cancelled
Test / frontend-typecheck (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Has been cancelled
The libsodium-sys-stable build.rs panics if both SODIUM_LIB_DIR and SODIUM_USE_PKG_CONFIG are set simultaneously. The runner infrastructure at 172.0.0.29 has SODIUM_USE_PKG_CONFIG in its container environment (not traceable to any workflow file or Docker image ENV layer), which conflicts with the SODIUM_LIB_DIR approach used for cross-compilation. Explicitly unset SODIUM_USE_PKG_CONFIG in the shell before npm/cargo runs on all three platforms (linux-amd64, windows-amd64, linux-arm64) in both release-beta.yml and auto-tag.yml. This is a defensive no-op when the variable is absent, and a clean fix when it is present.
This commit is contained in:
parent
85f26225ba
commit
0b13b3ebe2
@ -346,6 +346,7 @@ jobs:
|
|||||||
APPIMAGE_EXTRACT_AND_RUN: "1"
|
APPIMAGE_EXTRACT_AND_RUN: "1"
|
||||||
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
|
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
|
||||||
run: |
|
run: |
|
||||||
|
unset SODIUM_USE_PKG_CONFIG
|
||||||
npm ci --legacy-peer-deps
|
npm ci --legacy-peer-deps
|
||||||
CI=true npx tauri build --target x86_64-unknown-linux-gnu
|
CI=true npx tauri build --target x86_64-unknown-linux-gnu
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
@ -447,6 +448,7 @@ jobs:
|
|||||||
OPENSSL_STATIC: "1"
|
OPENSSL_STATIC: "1"
|
||||||
SODIUM_LIB_DIR: /usr/x86_64-w64-mingw32/lib
|
SODIUM_LIB_DIR: /usr/x86_64-w64-mingw32/lib
|
||||||
run: |
|
run: |
|
||||||
|
unset SODIUM_USE_PKG_CONFIG
|
||||||
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
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
@ -636,6 +638,7 @@ jobs:
|
|||||||
APPIMAGE_EXTRACT_AND_RUN: "1"
|
APPIMAGE_EXTRACT_AND_RUN: "1"
|
||||||
SODIUM_LIB_DIR: /usr/lib/aarch64-linux-gnu
|
SODIUM_LIB_DIR: /usr/lib/aarch64-linux-gnu
|
||||||
run: |
|
run: |
|
||||||
|
unset SODIUM_USE_PKG_CONFIG
|
||||||
npm ci --legacy-peer-deps
|
npm ci --legacy-peer-deps
|
||||||
CI=true npx tauri build --target aarch64-unknown-linux-gnu --bundles deb,rpm
|
CI=true npx tauri build --target aarch64-unknown-linux-gnu --bundles deb,rpm
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|||||||
@ -226,6 +226,7 @@ jobs:
|
|||||||
APPIMAGE_EXTRACT_AND_RUN: "1"
|
APPIMAGE_EXTRACT_AND_RUN: "1"
|
||||||
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
|
SODIUM_LIB_DIR: /usr/lib/x86_64-linux-gnu
|
||||||
run: |
|
run: |
|
||||||
|
unset SODIUM_USE_PKG_CONFIG
|
||||||
npm ci --legacy-peer-deps
|
npm ci --legacy-peer-deps
|
||||||
CI=true npx tauri build --target x86_64-unknown-linux-gnu
|
CI=true npx tauri build --target x86_64-unknown-linux-gnu
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
@ -321,6 +322,7 @@ jobs:
|
|||||||
SODIUM_LIB_DIR: /usr/x86_64-w64-mingw32/lib
|
SODIUM_LIB_DIR: /usr/x86_64-w64-mingw32/lib
|
||||||
SODIUM_STATIC: "1"
|
SODIUM_STATIC: "1"
|
||||||
run: |
|
run: |
|
||||||
|
unset SODIUM_USE_PKG_CONFIG
|
||||||
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
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
@ -496,6 +498,7 @@ jobs:
|
|||||||
APPIMAGE_EXTRACT_AND_RUN: "1"
|
APPIMAGE_EXTRACT_AND_RUN: "1"
|
||||||
SODIUM_LIB_DIR: /usr/lib/aarch64-linux-gnu
|
SODIUM_LIB_DIR: /usr/lib/aarch64-linux-gnu
|
||||||
run: |
|
run: |
|
||||||
|
unset SODIUM_USE_PKG_CONFIG
|
||||||
npm ci --legacy-peer-deps
|
npm ci --legacy-peer-deps
|
||||||
CI=true npx tauri build --target aarch64-unknown-linux-gnu --bundles deb,rpm
|
CI=true npx tauri build --target aarch64-unknown-linux-gnu --bundles deb,rpm
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user