Skip to content

Commit

Permalink
fix(ci): Patch librocksdb-sys to support macOS 10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaalvarezd committed Aug 20, 2023
1 parent 43a86ac commit e520c4d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ jobs:
working-directory: packages/backend/bindings/node/native
if: matrix.os == 'windows-latest'

# This step is required to support macOS 10.13
- name: Apply librocksdb-sys patch (macOS)
run: |
cargo install cargo-patch
cp ${{ github.workspace }}/manual-patches/rocksdb_faligned_allocation.patch .
git apply --ignore-space-change --ignore-whitespace ${{ github.workspace }}/manual-patches/macos_cargo_toml.patch
cat Cargo.toml
cargo patch
working-directory: packages/backend/bindings/node/native
if: ${{ startsWith(matrix.os, 'macos') }}

- name: Set deployment target (macOS)
run: echo "MACOSX_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV
if: matrix.os == 'macos-13'
Expand Down

0 comments on commit e520c4d

Please sign in to comment.