From a99825cef76059c1e2f861ef0405329a6c9eb619 Mon Sep 17 00:00:00 2001 From: astoycos Date: Wed, 26 Jun 2024 10:53:17 -0400 Subject: [PATCH] add libelf dev headers Add libelf dev and kernel headers to the gen workflow so that it can complete successfully. Signed-off-by: astoycos --- .github/workflows/gen.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gen.yml b/.github/workflows/gen.yml index 3bb657ad9..ac83a596b 100644 --- a/.github/workflows/gen.yml +++ b/.github/workflows/gen.yml @@ -27,10 +27,18 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Install headers + continue-on-error: true run: | - sudo apt -y update - sudo apt -y install libc6-dev libc6-dev-{arm64,armel,riscv64,ppc64el,s390x}-cross + sudo apt-get -y update + 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 apt-get -y update + - name: Run codegen run: | cargo xtask codegen