Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: add ndctl dependencies #109

Merged
merged 2 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
path: run_qemu

- name: apt get requirements
- name: apt install mkosi and run_qemu requirements
run: |
# update is required first, see
# https://github.com/actions/runner-images/issues/2924
Expand All @@ -54,19 +54,25 @@ jobs:
# run_qemu deps
sudo apt install -y mkosi # this one pulls A LOT
sudo apt install -y dracut-core qemu-utils ovmf mtools
pip3 install qemu.qmp

- name: mkosi v20 fixes
if: matrix.cfg.os == 'ubuntu-24.04'
run: |
cd /usr/lib/python3/dist-packages
sudo git apply "${{ github.workspace }}"/run_qemu/Patches/ubuntu/24.04/mkosi/*.patch

- name: apt get Ubuntu 24 requirements
- name: apt install Ubuntu 24 requirements for mkosi
if: matrix.cfg.os == 'ubuntu-24.04'
run: |
# systemd was monolithic in Ubunutu 22
sudo apt install -y systemd-ukify systemd-boot

- name: apt install ndctl build dependencies
run: |
grep -vE '^[[:blank:]]*#' .github/workflows/ubuntu-ndctl-build-deps |
xargs sudo apt install -y

# argbash. TODO: mixing generated code and sources in the same git
# repo is generally a bad idea but this particular one changes
# rarely, so it should probably deserve an exception avoiding
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/ubuntu-ndctl-build-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See ndctl.git/ndctl.spec.in and
# `apt-rdepends --build-depends --follow=DEPENDS ndctl`

meson
ninja-build

asciidoctor

libtraceevent-dev
libtracefs-dev

libkmod-dev
libudev-dev
uuid-dev
libjson-c-dev
libkeyutils-dev
libiniparser-dev
2 changes: 2 additions & 0 deletions mkosi.ubuntu.default.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Packages=
libkmod-dev
libudev-dev
uuid-dev
uuid-runtime
libjson-c-dev
jq
bash-completion
libkeyutils-dev
python3
Expand Down