Commit Graph

37 Commits

Author SHA1 Message Date
dependabot[bot]
0780eef640 build(deps): bump the github-actions group with 3 updates
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>
2025-12-16 11:15:51 +01:00
dependabot[bot]
fc2320bb5d build(deps): bump actions/checkout in the github-actions group
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 5 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 08:27:31 -05:00
Tamir Duberstein
2a33c642de .github: remove push-to-fork
We need to create the fork first.
2025-11-11 09:58:20 -05:00
Tamir Duberstein
62a92af00e .github: restrict permissions 2025-11-11 09:57:49 -05:00
Tamir Duberstein
5dd6d94342 .github: update reference
The referenced issue has hundreds of automated mentions, making it quite
hard to look at.
2025-11-11 09:08:04 -05:00
Tamir Duberstein
222b2cb88f .github: avoid spurious CI failures in forks
This spams my email every day.
2025-09-06 07:04:13 -04:00
dependabot[bot]
9a367c11b0 build(deps): bump actions/checkout in the github-actions group
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2025-08-11 21:32:15 -04:00
Tamir Duberstein
eda29958f8 Use CRABBY_GITHUB_TOKEN for regen PRs
See https://github.com/peter-evans/create-pull-request/issues/48.
2025-06-09 13:45:59 -04:00
Tamir Duberstein
9916092f5c codegen: tidy up
- Document the need for external rustfmt invocation.
- Remove reexports.
- Remove `write_to_file`.
- Avoid allocating strings when using bindgen to write bindings.
2025-03-04 15:59:00 -05:00
Tamir Duberstein
b18b4f7369 ci: use output rather than env
This appeases my IDE and removes annoying yellow squiggles.
2025-03-04 15:59:00 -05:00
Tamir Duberstein
56ebe1406e aya-tool: do not attempt to run rustfmt
This can be done externally. Do so in CI.

This is an attempt to resolve the inconsistency between CI and local
rustfmt in the generated bindings.

Restore running CI on generated branches; the presence of a PR is
apparently not enough.
2025-03-04 11:45:05 -05:00
WANG Rui
9d0bdb56e6 chore(xtask): Add loongarch64 to codegen
Signed-off-by: WANG Rui <wangrui@loongson.cn>
2025-03-04 11:01:42 +08:00
Tamir Duberstein
a25e355ba7 ci: run on all branches
It is especially common to run CI on non-main branches in forks. This
shouldn't have any impact on how many CI jobs we run in the main aya
repo if contributors follow a fork-centric workflow.
2025-03-03 11:28:34 -05:00
Tamir Duberstein
5d5b63dcb1 gen: run on ubuntu-latest
ubuntu-20.04 is being deprecated.

See https://github.com/actions/runner-images/issues/11101.
2025-03-02 11:46:24 -05:00
Tamir Duberstein
8af5f38056 gen: run automatically 2025-02-05 10:39:17 -05:00
Tamir Duberstein
83b791223f gen: remove pointless "update"
libbpf is a submodule, so its version is already effectively pinned.
`xtask codegen` also runs `git submodule update` which reverts the
action of updating to `origin/HEAD`. Remove the cruft.
2025-02-05 10:39:17 -05:00
Tamir Duberstein
76d1b9f46e gen: use peter-evans/create-pull-request@v7
We already use this for the lint job on main.
2025-02-05 10:39:17 -05:00
Dave Tucker
5d27e62b6a ci: Update codegen PR template
Updated to match the commit message

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2025-02-01 20:27:21 +00:00
Dave Tucker
34be19a24d ci: Improve Codegen Workflow
1. Bless public-api changes
2. (Hopefully) fix the commit message

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2025-02-01 13:53:44 +00:00
Dave Tucker
3b41205059 ci: Install libc6-dev-mips-cross for codegen
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2025-01-31 16:02:57 +00:00
Dave Tucker
64ec062c84 ci: Fix codegen and prep for s390/ppc64el
Adds missing libelf headers that are now included
as part of libbpf-internal.h. Adds ppc64el and
s390x to the cross environment.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2024-06-28 12:46:23 +01:00
dependabot[bot]
385b04c12b build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 14:05:17 +00:00
Andrew Werner
d5259ce789 xtask: move libbpf submodule 2023-07-17 16:55:37 -04:00
Andrew Werner
4306b222d8 .github: update codegen workflow to use submodule 2023-07-17 15:45:30 -04:00
Tamir Duberstein
8c61fc9ea6 integration-test: compile C probes using build.rs
- Add libbpf as a submodule. This prevents having to plumb its location
  around (which can't be passed to Cargo build scripts) and also
  controls the version against which codegen has run.
- Move bpf written in C to the integration-test crate and define
  constants for each probe.
- Remove magic; each C source file must be directly enumerated in the
  build script and in lib.rs.
2023-07-12 21:43:24 -04:00
Tamir Duberstein
6f286f1d4d github: update Swatinem/rust-cache@{v1,v2}
I don't understand why, but dependabot isn't updating this. See
https://github.com/dependabot/dependabot-core/issues/7384.
2023-06-01 17:03:01 -04:00
Tamir Duberstein
d5d6a95de6 Replace actions-rs/toolchain with dtolnay/rust-toolchain
See https://github.com/actions-rs/toolchain/issues/216; actions-rs seems
to be unmaintained.
2023-05-03 18:43:43 -04:00
dependabot[bot]
31301e4f51 build(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-27 22:08:44 +00:00
Dave Tucker
ce7a8b7dc1 .github: gen - add rustfmt to toolchain 2022-05-23 15:20:08 +01:00
Dave Tucker
8b7950bb0f .github: use nightly for codegen
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2022-05-23 15:09:54 +01:00
gianluigi
d35680f30c Add riscv64 architecture support to xtask/codegen 2022-05-23 12:26:01 +01:00
Dave Tucker
ef42739c65 .github: force push to codegen branch
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-12-15 21:57:41 +11:00
Dave Tucker
facb01f34b ci: Use crabby-the-crab
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-12-15 21:34:50 +11:00
Alessandro Decina
ab0d08910d ci: gen: fix workflow 2021-11-05 02:54:37 +00:00
Alessandro Decina
f372a4cd5f ci: gen: install cross headers 2021-11-05 02:35:37 +00:00
Dave Tucker
1a4c76e3c4 ci: Update codgen workflow commit message
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-10-24 20:36:34 +11:00
Dave Tucker
544efdd4d7 ci: Add action for xtask codegen
This commit adds a github action that will
- check out aya and libbpf
- run xtask codegen
- if there is a diff, open commit changes to the codegen branch
- if changes were comitted, open a pull-request

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-09-21 09:55:39 +10:00