backend, net: reduce memory allocation in forwarding packets (#394) #970
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
workflow_dispatch: | |
inputs: | |
debug: | |
type: boolean | |
description: "Run the build with tmate debugging enabled" | |
required: false | |
default: false | |
ref: | |
type: string | |
description: "Checkout specific ref for the workflow" | |
required: false | |
pull_request: | |
branches: | |
- main | |
- release-* | |
# cache only shares from the same branch, we need to trigger an extra flow on pushing | |
# thus all PRs will share the cache from main/release-* branches | |
push: | |
branches: | |
- main | |
- release-* | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
cmd: | |
if: ${{ github.event_name != 'push' }} | |
uses: ./.github/workflows/common.yml | |
with: | |
debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }} | |
ref: ${{ inputs.ref || github.ref }} | |
target: "cmd" | |
all_platform: true | |
lint: | |
if: ${{ github.event_name != 'push' }} | |
needs: cmd | |
uses: ./.github/workflows/common.yml | |
with: | |
debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }} | |
ref: ${{ inputs.ref || github.ref }} | |
target: "lint" | |
all_platform: false | |
test: | |
if: ${{ github.event_name != 'push' }} | |
needs: cmd | |
uses: ./.github/workflows/common.yml | |
with: | |
debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }} | |
ref: ${{ inputs.ref || github.ref }} | |
target: "test" | |
all_platform: false | |
cache: | |
if: ${{ github.event_name == 'push' }} | |
uses: ./.github/workflows/common.yml | |
with: | |
ref: ${{ inputs.ref || github.ref }} | |
debug: false | |
target: "build" | |
all_platform: true |