Skip to content

Commit

Permalink
ci:macos llgo install
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang committed Nov 27, 2024
1 parent a00fe7f commit 820d8c2
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ on:

jobs:

build:
runs-on: ubuntu-latest
test:
strategy:
matrix:
os:
- macos-latest
llvm: [18]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4

Expand All @@ -21,11 +26,28 @@ jobs:
with:
go-version: '1.20'

- name: Install dependencies
if: startsWith(matrix.os, 'macos')
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
# llcppg dependencies
brew install cjson
- name: Install LLGO
run: |
go install github.com/goplus/llgo/cmd/llgo@latest
- name: Build
run: go build -v ./...

- name: Install llcppg dependencies
run: bash .github/workflows/install_llcppg_depend.sh

- name: Test
run: go test -v ./...

- name: Install llcppg dependencies
run: bash .github/workflows/install_llcppg_depend.sh

0 comments on commit 820d8c2

Please sign in to comment.