gen: run automatically #14
Workflow file for this run
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: 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 }} |