-
Notifications
You must be signed in to change notification settings - Fork 305
51 lines (38 loc) · 1.15 KB
/
gen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 }}