ffi: fix ci and install doc

This commit is contained in:
Li Jie
2024-11-26 12:38:24 +08:00
parent 0547dede21
commit fa1ad20d5d
3 changed files with 7 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ jobs:
run: |
brew update
brew install llvm@${{matrix.llvm}} bdw-gc openssl libffi
brew link --force libffi
echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH
echo "PKG_CONFIG_PATH=/opt/homebrew/opt/libffi/lib/pkgconfig" >> $GITHUB_ENV
# Install optional deps for demos.
#

View File

@@ -358,9 +358,11 @@ Follow these steps to generate the `llgo` command (its usage is the same as the
```sh
brew update
brew install llvm@18 bdw-gc openssl cjson
brew install llvm@18 bdw-gc openssl cjson libffi
brew install python@3.12 # optional
brew link --force libffi
go install -v github.com/goplus/llgo/cmd/llgo@latest
```
### on Linux (Debian/Ubuntu)

View File

@@ -1,5 +1,6 @@
# shellcheck disable=all
brew update
brew install llvm@18 bdw-gc openssl cjson
brew install llvm@18 bdw-gc openssl cjson libffi
brew install python@3.12 # optional
go install -v github.com/goplus/llgo/cmd/llgo@latest
brew link --force libffi
go install -v github.com/goplus/llgo/cmd/llgo@latest