You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
885 B
34 lines
885 B
name: checklocks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- '**/*.go'
|
|
- '.github/workflows/checklocks.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
checklocks:
|
|
runs-on: [ ubuntu-latest ]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
- name: Build checklocks
|
|
run: ./tool/go build -o /tmp/checklocks gvisor.dev/gvisor/tools/checklocks/cmd/checklocks
|
|
|
|
- name: Run checklocks vet
|
|
# TODO(#12625): add more packages as we add annotations
|
|
run: |-
|
|
./tool/go vet -vettool=/tmp/checklocks \
|
|
./envknob \
|
|
./ipn/store/mem \
|
|
./net/stun/stuntest \
|
|
./net/wsconn \
|
|
./proxymap
|
|
|