Merge pull request #883 from luoliwoshang/ci/llcppg

ci:install llcppg dependent
This commit is contained in:
xushiwei
2024-11-26 12:44:31 +08:00
committed by GitHub
4 changed files with 24 additions and 9 deletions

View File

@@ -5,9 +5,9 @@ name: Go
on:
push:
branches: [ "*" ]
branches: [ "**" ]
pull_request:
branches: [ "*" ]
branches: [ "**" ]
jobs:
fmt:
@@ -41,7 +41,7 @@ jobs:
- name: Install dependencies
if: startsWith(matrix.os, 'macos')
run: |
brew uninstall pkg-config@0.29.2
bash .github/workflows/cleanup.sh
brew update
brew install llvm@${{matrix.llvm}} pkg-config bdw-gc openssl libffi
echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH
@@ -99,6 +99,12 @@ jobs:
- name: Build
run: go build -v ./...
- name: Install
run: go install ./...
- name: Install llcppg
run: bash .github/workflows/install_llcppg_depend.sh
- name: Test
if: ${{!startsWith(matrix.os, 'macos')}}
run: go test -v ./...
@@ -107,9 +113,6 @@ jobs:
if: startsWith(matrix.os, 'macos')
run: go test -v -coverprofile="coverage.txt" -covermode=atomic ./...
- name: Install
run: go install ./...
- name: LLGO tests
if: ${{!startsWith(matrix.os, 'ubuntu')}}
run: |