From 25cf0cdd30ed3bafcefb69f5eb6489443df48ed1 Mon Sep 17 00:00:00 2001 From: Martin Kunkel <41590858+martinkunkel2@users.noreply.github.com> Date: Mon, 8 Dec 2025 21:05:21 +0000 Subject: [PATCH] Add dependencies for uucore to coverage build --- .devcontainer/Dockerfile | 1 + .github/workflows/CICD.yml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 4296d58c4..5bc579f32 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -17,6 +17,7 @@ RUN apt-get update \ libcap-dev \ libexpect-perl \ libselinux1-dev \ + libsystemd-dev \ python3-pyinotify \ quilt \ texinfo \ diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 66b0ca576..2d6f864f2 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -585,7 +585,7 @@ jobs: - { os: ubuntu-latest , target: x86_64-unknown-redox , features: feat_os_unix_redox , use-cross: redoxer , skip-tests: true } - { os: ubuntu-latest , target: wasm32-unknown-unknown , default-features: false, features: uucore/format, skip-tests: true, skip-package: true, skip-publish: true } - { os: macos-latest , target: aarch64-apple-darwin , features: feat_os_macos, workspace-tests: true } # M1 CPU - # PR #7964: Mac should still build even if the feature is not enabled. Do not publish this. + # PR #7964: Mac should still build even if the feature is not enabled. Do not publish this. - { os: macos-latest , target: aarch64-apple-darwin , workspace-tests: true, skip-publish: true } # M1 CPU - { os: macos-latest , target: x86_64-apple-darwin , features: feat_os_macos, workspace-tests: true } - { os: windows-latest , target: i686-pc-windows-msvc , features: feat_os_windows } @@ -1099,7 +1099,9 @@ jobs: case '${{ matrix.job.os }}' in ubuntu-latest) - sudo apt-get -y update ; sudo apt-get -y install libselinux1-dev + # selinux and systemd headers needed to build tests + sudo apt-get -y update + sudo apt-get -y install libselinux1-dev libsystemd-dev # pinky is a tool to show logged-in users from utmp, and gecos fields from /etc/passwd. # In GitHub Action *nix VMs, no accounts log in, even the "runner" account that runs the commands, and "system boot" entry is missing. # The account also has empty gecos fields.