gen.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: codegen
  2. on: workflow_dispatch
  3. jobs:
  4. codegen:
  5. runs-on: ubuntu-20.04
  6. steps:
  7. - uses: actions/checkout@v4
  8. with:
  9. submodules: recursive
  10. - uses: dtolnay/rust-toolchain@nightly
  11. with:
  12. components: rustfmt, clippy
  13. - uses: Swatinem/rust-cache@v2
  14. - name: Install headers
  15. run: |
  16. set -euxo pipefail
  17. sudo apt -y update
  18. sudo apt -y install libelf-dev libc6-dev libc6-dev-{arm64,armel,riscv64,ppc64el,s390x,mips}-cross
  19. - run: cargo xtask codegen
  20. - run: cargo xtask public-api --bless
  21. - run: echo "LIBBPF_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
  22. working-directory: xtask/libbpf
  23. - uses: peter-evans/create-pull-request@v7
  24. with:
  25. branch: create-pull-request/codegen
  26. commit-message: |
  27. aya-obj, aya-ebpf-bindings: regenerate
  28. libbpf commit: ${{ env.LIBBPF_SHA }}
  29. title: 'aya-obj, aya-ebpf-bindings: regenerate'
  30. body: |
  31. **Automated changes**
  32. libbpf commit: ${{ env.LIBBPF_SHA }}