mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
* 10544812b3 Don't fix up vmlinuz locations if not required * 9baf551923 Reduce amount of packages in default image * 9e1a2f18b8 Add support for assert sections * c7c6e2c0b1 ubuntu: Switch to devel as the default release * 0822deb69c Improve logging when we can not extract kernel version from filename * 1fd7ef3db7 Do not build default initrd if Initrds= is specified * 611c8b46c8 Don't unconditionally sync when PackageCacheDirectory=/var * ab37f24d38 README: add link to OBS docs for mkosi builds * 02bf256ebb completion: add reuse ignore comments * 10ccb0b04f Make sure not all subimages depend on default-initrd subimage * 442e1ce0f1 mkosi-tools: systemd-boot-tools is now available for all arches * 307fc1dba3 action: make it work when used as a submodule * c37a55f91b config: serialize dataclass instances in our JSONEncoder * f26cb34155 log: set terminal window title in complete_step while mkosi runs * 280c78e681 Make sure inherited settings are applied for the default initrd * ae4f2fd718 Fix typo * 5644f3e83e build(deps): bump github/codeql-action from 3.29.7 to 3.30.5 * 7d7b26b8c9 build(deps): bump actions/checkout from 4.2.2 to 5.0.0 * e805253447 postmarketos: implement is_kernel_package * dd51d2e019 postmarketos: provide missing i386-vars.fd * e23e6de66b Do not relabel files when building extension image * ab05ead5eb Bump various systemd version checks to 258 * 382cc8b450 preset: drop systemd-networkd-wait-online.service * 477b6b2ed5 mkosi-initrd: install systemd-container in network profile * 1d167c0b53 mkosi-initrd: add 89-ethernet.network for network profile * b1e81dec3a mkosi-initrd: Install libseccomp explicitly * 3c431a141c opensuse: repository non-oss-debug is invalid * 62ab363149 ci: add an s390x build job for additional coverage * 62765f2d07 mailmap: deduplicate Daan * 47f963f40b Revert "ci: Disable PPC jobs temporarily" * 6a48f83dda dnf: Always specify --best again * 3702368616 sandbox: Make all relative paths absolute during argparsing * a587af0bf7 dnf: Fix /var package cache directory check in package_subdirs() * 56cdbc25b5 Always use repository metadata from /var package cache directory * 669d4418a3 Add note on Encrypt=yes to Passphrase= docs * caa129edae Drop BuildSourcesEphemeral=yes from default image config * 7edca63478 Add devicetree-auto support for UKI * 6cb1649074 Don't add ncdu for ppc64-le on Fedora * e019d2d2a6 ci: Disable PPC jobs temporarily
87 lines
3.2 KiB
YAML
87 lines
3.2 KiB
YAML
---
|
|
# vi: ts=2 sw=2 et:
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
# https://github.com/marketplace/actions/super-linter
|
|
name: Lint Code Base
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- v[0-9]+-stable
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint Code Base
|
|
runs-on: ubuntu-24.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
steps:
|
|
- name: Repo checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
with:
|
|
# We need a full repo clone
|
|
fetch-depth: 0
|
|
|
|
- name: Lint Code Base
|
|
uses: super-linter/super-linter/slim@12150456a73e248bdc94d0794898f94e23127c88
|
|
env:
|
|
DEFAULT_BRANCH: main
|
|
MULTI_STATUS: false
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_GITHUB_ACTIONS: true
|
|
LINTER_RULES_PATH: .github/linters
|
|
GITHUB_ACTIONS_CONFIG_FILE: actionlint.yml
|
|
|
|
- uses: systemd/mkosi@10544812b35a668d4aac9834c78ee8166e99bc78
|
|
|
|
- name: Check that tabs are not used in Python code
|
|
run: sh -c '! git grep -P "\\t" -- src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py'
|
|
|
|
- name: Build tools tree
|
|
run: |
|
|
tee mkosi/mkosi.local.conf <<EOF
|
|
[Build]
|
|
ToolsTreeDistribution=fedora
|
|
ToolsTreeRelease=rawhide
|
|
ToolsTreePackages=
|
|
libgcrypt-devel
|
|
libgpg-error-devel
|
|
musl-gcc
|
|
EOF
|
|
|
|
mkosi -f box -- true
|
|
|
|
- name: Run mypy
|
|
run: |
|
|
mkosi box -- mypy --version
|
|
mkosi box -- mypy src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
|
|
|
- name: Run ruff format
|
|
run: |
|
|
mkosi box -- ruff --version
|
|
if ! mkosi box -- ruff format --check src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
|
then
|
|
echo "Please run 'ruff format' on the above files or apply the diffs below manually"
|
|
mkosi box -- ruff format --check --quiet --diff src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
|
fi
|
|
|
|
- name: Run ruff check
|
|
run: |
|
|
mkosi box -- ruff --version
|
|
mkosi box -- ruff check src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
|
|
|
- name: Configure meson
|
|
run: mkosi box -- env CC=clang CXX=clang++ meson setup -Dlocalegen-path=/usr/bin/locale-gen -Dcompat-mutable-uid-boundaries=true build
|
|
|
|
- name: Run clang-tidy
|
|
run: mkosi box -- meson test -C build --suite=clang-tidy --print-errorlogs --no-stdsplit
|
|
|
|
- name: Build with musl
|
|
run: mkosi box -- .github/workflows/build-test-musl.sh
|