Skip to content

Commit

Permalink
fix: brew
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 12, 2024
1 parent 4d7acbf commit e42532e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ jobs:
key: ${{ matrix.platform }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build with Metal feature
env:
RUSTFLAGS: "-C link-arg=-Wl,-rpath,@executable_path/../lib -C link-arg=-Wl,-rpath,@loader_path/../lib"
run: |
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
export RUSTFLAGS="-C link-arg=-Wl,-rpath,@executable_path/../lib -C link-arg=-Wl,-rpath,@loader_path/../lib"
cargo build --release --features metal --target ${{ matrix.target }}
# get the current tag or take latest (in the case of a workflow dispatch)
Expand All @@ -82,6 +81,7 @@ jobs:
mkdir -p screenpipe-${{ env.VERSION }}-${{ matrix.target }}/bin
mkdir -p screenpipe-${{ env.VERSION }}-${{ matrix.target }}/lib
cp target/${{ matrix.target }}/release/screenpipe screenpipe-${{ env.VERSION }}-${{ matrix.target }}/bin/
cp screenpipe-vision/lib/libscreenpipe.dylib screenpipe-${{ env.VERSION }}-${{ matrix.target }}/lib/libscreenpipe.dylib
if [ "${{ matrix.target }}" = "x86_64-apple-darwin" ]; then
cp screenpipe-vision/lib/libscreenpipe_x86_64.dylib screenpipe-${{ env.VERSION }}-${{ matrix.target }}/lib/libscreenpipe_x86_64.dylib
elif [ "${{ matrix.target }}" = "aarch64-apple-darwin" ]; then
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resolver = "2"


[workspace.package]
version = "0.1.59"
version = "0.1.60"
authors = ["louis030195 <[email protected]>"]
description = ""
repository = "https://github.com/louis030195/screen-pipe"
Expand Down

0 comments on commit e42532e

Please sign in to comment.