Skip to content
2 changes: 2 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Include every package in the LLGo report, including tool/ and its dependencies.
ignore: []
28 changes: 21 additions & 7 deletions .github/workflows/llgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,39 @@ concurrency:

jobs:
test:
permissions:
contents: read
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
llvm: [22]
llgo: [v1.0.4]
llgo: [main]
go: [1.27]
fail-fast: false
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v7
- name: Setup llgo
uses: ./.github/actions/setup-llgo
uses: xgo-dev/setup-llgo@v0.2.0
with:
go: ${{ matrix.go }}
llvm: ${{ matrix.llvm }}
llgo: ${{ matrix.llgo }}
go-version: ${{ matrix.go }}
llvm-version: ${{ matrix.llvm }}
llgo-version: ${{ matrix.llgo }}

- name: Test
- name: Test with coverage
shell: bash
run: |
llgo test -v ./...
llgo test -v -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./...
go tool cover -func=coverage.txt | tail -1

- name: Upload coverage to Codecov
if: ${{ github.repository == 'goplus/llcppg' && !cancelled() && hashFiles('coverage.txt') != '' }}
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.txt
flags: llgo-tests
disable_search: true
fail_ci_if_error: true
Loading