add libelf dev headers

Add libelf dev and kernel headers to the gen workflow so that
it can complete successfully.

Signed-off-by: astoycos <astoycos@redhat.com>
pr/Billy99/974
astoycos 5 months ago
parent e8ae9ae24d
commit 9a91c0dd54

@ -4,7 +4,7 @@ on: workflow_dispatch
jobs: jobs:
codegen: codegen:
runs-on: ubuntu-20.04 runs-on: ubuntu-24.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -27,9 +27,17 @@ jobs:
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Install headers - name: Install headers
continue-on-error: true
run: | run: |
sudo apt -y update sudo apt-get -y update
sudo apt -y install libc6-dev libc6-dev-{arm64,armel,riscv64,ppc64el,s390x}-cross sudo apt -y install linux-headers-`uname -r` libelf-dev libc6-dev libc6-dev-{arm64,armel,riscv64,ppc64el,s390x}-cross
sudo dpkg --add-architecture arm64
sudo dpkg --add-architecture armel
sudo dpkg --add-architecture riscv64
sudo dpkg --add-architecture ppc64el
sudo dpkg --add-architecture s390x
sudo find / -name posix_types.h | grep "asm/posix_types.h"
- name: Run codegen - name: Run codegen
run: | run: |

Loading…
Cancel
Save