Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Fix MKL in Linux

Neptune559c5bee7d52
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 8a101af4f..233624d18 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -150,10 +150,7 @@ jobs:
run: |
pip install mkl mkl-devel mkl-static
mkdir -p /opt/intel/mkl
- cp /usr/lib/python3.10/site-packages/mkl/* \
- /usr/lib/python3.10/site-packages/mkl-devel/* \
- /usr/lib/python3.10/site-packages/mkl-static/* \
- /opt/intel/mkl/
+ cp ~/.local/lib/* ~/.local/include/* /opt/intel/mkl/
- name: Install frontend dependencies
shell: bash
@@ -192,6 +189,10 @@ jobs:
export RUSTFLAGS="-C link-arg=-Wl,-rpath,@executable_path/../Frameworks -C link-arg=-Wl,-rpath,@loader_path/../Frameworks -C link-arg=-Wl,-install_name,@rpath/libscreenpipe.dylib"
export V8_FLAGS="--max-old-space-size=8192" # https://github.com/denoland/deno_core/issues/916
fi
+ if [[ "${{ matrix.platform }}" == "ubuntu-22.04" ]]; then
+ export PKG_CONFIG_PATH="~/.local/lib/pkgconfig:$PKG_CONFIG_PATH"
+ export MKLROOT="/opt/intel/mkl"
+ fi
cargo build --release -p screenpipe-server ${{ matrix.args }}
# Run pre build again to copy the CLI into app