Skip to content

fix(cpu): avoid cpu stat hierarchy wait sum underflow #315

fix(cpu): avoid cpu stat hierarchy wait sum underflow

fix(cpu): avoid cpu stat hierarchy wait sum underflow #315

name: build, lint and vendor codes
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
lint-vendor-build:
name: Build, Lint and Vendor
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image used by linters
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.devel
push: false
load: true
tags: huatuo-dev:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Make build, check and vendor
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
huatuo-dev:latest \
sh -xec '
git config --global --add safe.directory /workspace
make bpf-build
make build
make --trace check
make vendor
git diff --exit-code
'