From ed4a1316383daad3facaa182dc334ca2e1eb51ab Mon Sep 17 00:00:00 2001 From: Jamie Snape Date: Mon, 30 Nov 2026 21:38:09 -0500 Subject: [PATCH] Remove unnecessary package upgrades and cleanups from CI workflows Signed-off-by: Jamie Snape --- .github/workflows/actionlint.yml | 4 ---- .github/workflows/bazel.yml | 17 ----------------- .github/workflows/buildifier.yml | 4 ---- .github/workflows/check-jsonschema.yml | 2 -- .github/workflows/cmake.yml | 22 ---------------------- .github/workflows/codespell.yml | 2 -- .github/workflows/hadolint.yml | 4 ---- .github/workflows/markdownlint.yml | 4 ---- .github/workflows/meson-format.yml | 4 ---- .github/workflows/meson.yml | 14 -------------- .github/workflows/validate-cff.yml | 2 -- .github/workflows/yamllint.yml | 2 -- 12 files changed, 81 deletions(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 15422ce..5124c9a 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -77,16 +77,12 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ git \ golang \ shellcheck - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.12 env: DEBIAN_FRONTEND: noninteractive diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index efcaeea..eeece07 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -63,7 +63,6 @@ jobs: id: setup run: | dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh) - dnf upgrade -q -y dnf install -q -y \ ca-certificates \ gcc-c++ \ @@ -71,7 +70,6 @@ jobs: python3 \ wget \ which - dnf clean all rm -rf /var/cache/yum wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -qO /usr/local/bin/bazelisk \ @@ -118,9 +116,6 @@ jobs: python \ wget \ which - rm -rf \ - /var/cache/pacman/pkg/* \ - /var/lib/pacman/sync/* wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -qO /usr/local/bin/bazelisk \ https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 @@ -160,7 +155,6 @@ jobs: id: setup run: | dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh) - dnf upgrade -q -y dnf install -q -y \ ca-certificates \ gcc-c++ \ @@ -168,7 +162,6 @@ jobs: python3 \ wget \ which - dnf clean all rm -rf /var/cache/yum wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -qO /usr/local/bin/bazelisk \ @@ -247,7 +240,6 @@ jobs: id: setup run: | zypper -n -q ref || (sleep 15; zypper -n -q ref) - zypper -n -q up zypper -n -q in --no-recommends \ ca-certificates \ gcc-c++ \ @@ -255,7 +247,6 @@ jobs: python3 \ wget \ which - zypper -n -q cc -a wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -qO /usr/local/bin/bazelisk \ https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 @@ -296,8 +287,6 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ @@ -305,8 +294,6 @@ jobs: git \ python-is-python3 \ wget - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -q \ https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-amd64.deb @@ -349,8 +336,6 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ @@ -358,8 +343,6 @@ jobs: git \ python-is-python3 \ wget - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -q \ https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-arm64.deb diff --git a/.github/workflows/buildifier.yml b/.github/workflows/buildifier.yml index 45a1281..7e3e85b 100644 --- a/.github/workflows/buildifier.yml +++ b/.github/workflows/buildifier.yml @@ -83,15 +83,11 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ git \ wget - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -qO /usr/local/bin/buildifier \ https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier-linux-amd64 diff --git a/.github/workflows/check-jsonschema.yml b/.github/workflows/check-jsonschema.yml index 744bb65..1ba552c 100644 --- a/.github/workflows/check-jsonschema.yml +++ b/.github/workflows/check-jsonschema.yml @@ -77,8 +77,6 @@ jobs: --no-install-recommends install \ ca-certificates \ git - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 16c1dd6..c600591 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -62,7 +62,6 @@ jobs: - name: setup run: | dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh) - dnf upgrade -q -y dnf install -q -y \ ca-certificates \ cmake \ @@ -76,7 +75,6 @@ jobs: rpm-build dnf config-manager --set-enabled crb dnf install -q -y doxygen - dnf clean all rm -rf /var/cache/yum shell: bash - name: checkout @@ -113,7 +111,6 @@ jobs: steps: - name: setup run: | - apk upgrade -q --no-cache || (sleep 15; apk upgrade -q --no-cache) (apk add -q --no-cache \ ca-certificates \ cmake \ @@ -175,9 +172,6 @@ jobs: graphviz \ make \ pkgconf - rm -rf \ - /var/cache/pacman/pkg/* \ - /var/lib/pacman/sync/* shell: bash - name: checkout uses: actions/checkout@v7.0.1 @@ -214,7 +208,6 @@ jobs: - name: setup run: | dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh) - dnf upgrade -q -y dnf install -q -y \ ca-certificates \ cmake \ @@ -226,7 +219,6 @@ jobs: make \ pkgconf-pkg-config \ rpm-build - dnf clean all rm -rf /var/cache/yum shell: bash - name: checkout @@ -309,7 +301,6 @@ jobs: - name: setup run: | zypper -n -q ref || (sleep 15; zypper -n -q ref) - zypper -n -q up zypper -n -q in --no-recommends \ ca-certificates \ cmake \ @@ -320,7 +311,6 @@ jobs: make \ pkgconf \ rpm-build - zypper -n -q cc -a shell: bash - name: checkout uses: actions/checkout@v7.0.1 @@ -358,8 +348,6 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ @@ -372,8 +360,6 @@ jobs: graphviz \ make \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash @@ -413,8 +399,6 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ @@ -427,8 +411,6 @@ jobs: graphviz \ make \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash @@ -483,8 +465,6 @@ jobs: llvm \ make \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash @@ -540,8 +520,6 @@ jobs: llvm \ make \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 6495964..9efe373 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -67,8 +67,6 @@ jobs: --no-install-recommends install \ ca-certificates \ git - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.yml index 02b0821..d5c2da3 100644 --- a/.github/workflows/hadolint.yml +++ b/.github/workflows/hadolint.yml @@ -75,15 +75,11 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ git \ wget - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* wget --tries=4 --waitretry=15 --retry-on-http-error=429,500,502,503,504 \ -qO /usr/local/bin/hadolint \ https://github.com/hadolint/hadolint/releases/latest/download/hadolint-linux-x86_64 diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index c2bfffa..5318b86 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -77,15 +77,11 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ git \ markdownlint - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash diff --git a/.github/workflows/meson-format.yml b/.github/workflows/meson-format.yml index 86aae3d..53d6bfd 100644 --- a/.github/workflows/meson-format.yml +++ b/.github/workflows/meson-format.yml @@ -73,15 +73,11 @@ jobs: run: | apt-get -qq -o APT::Acquire::Retries=4 update \ || (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update) - apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ - upgrade apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \ --no-install-recommends install \ ca-certificates \ git \ meson - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml index c0765cd..1091857 100644 --- a/.github/workflows/meson.yml +++ b/.github/workflows/meson.yml @@ -72,7 +72,6 @@ jobs: ninja-build \ pkgconf dnf config-manager --set-enabled crb - dnf clean all rm -rf /var/cache/yum shell: bash - name: checkout @@ -150,9 +149,6 @@ jobs: meson \ ninja \ pkgconf - rm -rf \ - /var/cache/pacman/pkg/* \ - /var/lib/pacman/sync/* shell: bash - name: checkout uses: actions/checkout@v7.0.1 @@ -190,7 +186,6 @@ jobs: meson \ ninja-build \ pkgconf - dnf clean all rm -rf /var/cache/yum shell: bash - name: checkout @@ -265,7 +260,6 @@ jobs: meson \ ninja \ pkgconf - zypper -n -q cc -a shell: bash - name: checkout uses: actions/checkout@v7.0.1 @@ -304,8 +298,6 @@ jobs: meson \ ninja-build \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash @@ -346,8 +338,6 @@ jobs: meson \ ninja-build \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash @@ -391,8 +381,6 @@ jobs: meson \ ninja-build \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash @@ -439,8 +427,6 @@ jobs: meson \ ninja-build \ pkgconf - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash diff --git a/.github/workflows/validate-cff.yml b/.github/workflows/validate-cff.yml index 18f4810..451309e 100644 --- a/.github/workflows/validate-cff.yml +++ b/.github/workflows/validate-cff.yml @@ -73,8 +73,6 @@ jobs: --no-install-recommends install \ ca-certificates \ git - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index ec93a40..77bfa5e 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -76,8 +76,6 @@ jobs: ca-certificates \ git \ yamllint - apt-get -qq -o Dpkg::Use-Pty=0 autoremove - rm -rf /var/lib/apt/lists/* env: DEBIAN_FRONTEND: noninteractive shell: bash