Merge pull request #883 from luoliwoshang/ci/llcppg
ci:install llcppg dependent
This commit is contained in:
6
.github/workflows/cleanup.sh
vendored
Normal file
6
.github/workflows/cleanup.sh
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if pkg=$(brew list | grep -E "pkg-config"); then
|
||||||
|
brew uninstall "$pkg" || true
|
||||||
|
fi
|
||||||
6
.github/workflows/doc.yml
vendored
6
.github/workflows/doc.yml
vendored
@@ -2,9 +2,9 @@ name: Docs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "*" ]
|
branches: [ "**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "*" ]
|
branches: [ "**" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
doc_verify:
|
doc_verify:
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
brew uninstall pkg-config@0.29.2
|
bash .github/workflows/cleanup.sh
|
||||||
source doc/_readme/scripts/install_macos.sh
|
source doc/_readme/scripts/install_macos.sh
|
||||||
|
|
||||||
- name: Install dependencies on Ubuntu
|
- name: Install dependencies on Ubuntu
|
||||||
|
|||||||
15
.github/workflows/go.yml
vendored
15
.github/workflows/go.yml
vendored
@@ -5,9 +5,9 @@ name: Go
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "*" ]
|
branches: [ "**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "*" ]
|
branches: [ "**" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fmt:
|
fmt:
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: startsWith(matrix.os, 'macos')
|
if: startsWith(matrix.os, 'macos')
|
||||||
run: |
|
run: |
|
||||||
brew uninstall pkg-config@0.29.2
|
bash .github/workflows/cleanup.sh
|
||||||
brew update
|
brew update
|
||||||
brew install llvm@${{matrix.llvm}} pkg-config bdw-gc openssl libffi
|
brew install llvm@${{matrix.llvm}} pkg-config bdw-gc openssl libffi
|
||||||
echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH
|
echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH
|
||||||
@@ -99,6 +99,12 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
run: go install ./...
|
||||||
|
|
||||||
|
- name: Install llcppg
|
||||||
|
run: bash .github/workflows/install_llcppg_depend.sh
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
if: ${{!startsWith(matrix.os, 'macos')}}
|
if: ${{!startsWith(matrix.os, 'macos')}}
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
@@ -107,9 +113,6 @@ jobs:
|
|||||||
if: startsWith(matrix.os, 'macos')
|
if: startsWith(matrix.os, 'macos')
|
||||||
run: go test -v -coverprofile="coverage.txt" -covermode=atomic ./...
|
run: go test -v -coverprofile="coverage.txt" -covermode=atomic ./...
|
||||||
|
|
||||||
- name: Install
|
|
||||||
run: go install ./...
|
|
||||||
|
|
||||||
- name: LLGO tests
|
- name: LLGO tests
|
||||||
if: ${{!startsWith(matrix.os, 'ubuntu')}}
|
if: ${{!startsWith(matrix.os, 'ubuntu')}}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.github/workflows/install_llcppg_depend.sh
vendored
Normal file
6
.github/workflows/install_llcppg_depend.sh
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
llgo install ./chore/_xtool/llcppsymg
|
||||||
|
llgo install ./chore/_xtool/llcppsigfetch
|
||||||
|
go install ./chore/gogensig
|
||||||
Reference in New Issue
Block a user