Skip to content

Commit 85b6f4d

Browse files
committed
fix: mac package rpath issue
1 parent b49eee9 commit 85b6f4d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/book.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
mdbook build
4444
working-directory: book
45-
- uses: actions/upload-artifact@v3
45+
- uses: actions/upload-artifact@v4
4646
with:
4747
name: book
4848
path: book/book
@@ -53,7 +53,7 @@ jobs:
5353
needs: book
5454
if: github.event_name == 'push'
5555
steps:
56-
- uses: actions/download-artifact@v3
56+
- uses: actions/download-artifact@v4
5757
with:
5858
name: book
5959
- uses: peaceiris/actions-gh-pages@v3

.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
dir: osx64
3030
arch: darwin-arm64
3131
artifacts: "plc"
32-
RUSTFLAGS: ""
32+
RUSTFLAGS: "-C link-args=-Wl,-ld_classic"
3333
libvm: "libvm.a"
3434
libvm_dylib: "libvm.dylib"
3535
libuv_dylib: "libuv.dylib"
@@ -83,7 +83,9 @@ jobs:
8383
- name: Cargo build
8484
env:
8585
RUSTFLAGS: ${{ matrix.config.RUSTFLAGS }}
86-
run: cargo build --release
86+
run: |
87+
cargo build --release
88+
install_name_tool -change @rpath/libc++.1.dylib /usr/lib/libc++.1.dylib ./target/release/plc
8789
8890
- run: mkdir -p ${{ matrix.config.dir }}
8991

0 commit comments

Comments
 (0)