123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: codegen
- on:
- push:
- branches:
- - main
- schedule:
- - cron: 00 4 * * *
- workflow_dispatch:
- jobs:
- codegen:
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v4
- with:
- submodules: recursive
- - uses: dtolnay/rust-toolchain@nightly
- with:
- components: rustfmt, clippy
- - uses: Swatinem/rust-cache@v2
- - name: Install headers
- run: |
- set -euxo pipefail
- sudo apt -y update
- sudo apt -y install libelf-dev libc6-dev libc6-dev-{arm64,armel,riscv64,ppc64el,s390x,mips}-cross
- - run: cargo xtask codegen
- - run: cargo xtask public-api --bless
- - run: echo "LIBBPF_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
- working-directory: xtask/libbpf
- - uses: peter-evans/create-pull-request@v7
- with:
- branch: create-pull-request/codegen
- commit-message: |
- aya-obj, aya-ebpf-bindings: regenerate
- libbpf commit: ${{ env.LIBBPF_SHA }}
- title: 'aya-obj, aya-ebpf-bindings: regenerate'
- body: |
- **Automated changes**
- libbpf commit: ${{ env.LIBBPF_SHA }}
|