ffi: fix ci and install doc
This commit is contained in:
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@@ -43,8 +43,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install llvm@${{matrix.llvm}} bdw-gc openssl libffi
|
brew install llvm@${{matrix.llvm}} bdw-gc openssl libffi
|
||||||
|
brew link --force libffi
|
||||||
echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH
|
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.
|
# Install optional deps for demos.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -358,9 +358,11 @@ Follow these steps to generate the `llgo` command (its usage is the same as the
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
brew update
|
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 install python@3.12 # optional
|
||||||
|
brew link --force libffi
|
||||||
go install -v github.com/goplus/llgo/cmd/llgo@latest
|
go install -v github.com/goplus/llgo/cmd/llgo@latest
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### on Linux (Debian/Ubuntu)
|
### on Linux (Debian/Ubuntu)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# shellcheck disable=all
|
# shellcheck disable=all
|
||||||
brew update
|
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 install python@3.12 # optional
|
||||||
|
brew link --force libffi
|
||||||
go install -v github.com/goplus/llgo/cmd/llgo@latest
|
go install -v github.com/goplus/llgo/cmd/llgo@latest
|
||||||
Reference in New Issue
Block a user