mirror of
https://github.com/aya-rs/aya.git
synced 2026-03-03 18:23:55 +01:00
Bumps the github-actions group with 3 updates: [DavidAnson/markdownlint-cli2-action](https://github.com/davidanson/markdownlint-cli2-action), [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) and [actions/cache](https://github.com/actions/cache). Updates `DavidAnson/markdownlint-cli2-action` from 21 to 22 - [Release notes](https://github.com/davidanson/markdownlint-cli2-action/releases) - [Commits](https://github.com/davidanson/markdownlint-cli2-action/compare/v21...v22) Updates `peter-evans/create-pull-request` from 7 to 8 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v7...v8) Updates `actions/cache` from 4 to 5 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v5) --- updated-dependencies: - dependency-name: DavidAnson/markdownlint-cli2-action dependency-version: '22' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
name: codegen
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'create-pull-request/**'
|
|
|
|
schedule:
|
|
- cron: 00 4 * * *
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
codegen:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
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,loong64,riscv64,ppc64el,s390x,mips}-cross
|
|
|
|
- run: cargo xtask codegen
|
|
# aya-ebpf-bindings aren't emitted directly from bindgen and so aren't formatted.
|
|
- run: cargo fmt --all
|
|
- run: cargo xtask public-api --bless
|
|
|
|
- id: libbpf
|
|
working-directory: xtask/libbpf
|
|
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
|
|
|
- uses: peter-evans/create-pull-request@v8
|
|
if: ${{ github.repository == 'aya-rs/aya' }}
|
|
with:
|
|
# GitHub actions aren't allowed to trigger other actions to prevent
|
|
# abuse; the canonical workaround is to use a sufficiently authorized
|
|
# token.
|
|
#
|
|
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs.
|
|
token: ${{ secrets.CRABBY_GITHUB_TOKEN }}
|
|
branch: create-pull-request/codegen
|
|
commit-message: |
|
|
aya-obj, aya-ebpf-bindings: regenerate
|
|
|
|
libbpf commit: ${{ steps.libbpf.outputs.sha }}
|
|
title: 'aya-obj, aya-ebpf-bindings: regenerate'
|
|
body: |
|
|
**Automated changes**
|
|
|
|
libbpf commit: ${{ steps.libbpf.outputs.sha}}
|