Skip to content

Commit eb8dcce

Browse files
committed
ci: Replace rockylinux with almalinux
rockylinux's package manager infrastructure sometimes is broken. ``` + dnf install -y cargo tar gzip Rocky Linux 8 - AppStream 34 kB/s | 10 MB 05:05 Errors during downloading metadata for repository 'appstream': - Downloading successful, but checksum doesn't match. Calculated: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855(sha256) Expected: 0087a37e2eca36cac787004b7945dbbcc2dba4dd776e50d6d1461bfe2cc30434(sha256) - Downloading successful, but checksum doesn't match. Calculated: 839488ebc08446a096a893996ed23eac321ac166724cd8c5d9092057834d2d79(sha256) Expected: b31374fa4a7a732aae643cea0699f714480387baad33061b2fae4530d380a988(sha256) - Downloading successful, but checksum doesn't match. Calculated: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855(sha256) Expected: 649280a7614f8a30d3fcc03560247b64906a6cf26024e090c0272766e671e5f3(sha256) Error: Failed to download metadata for repo 'appstream': Yum repo downloading error: Downloading error(s): repodata/b31374fa4a7a732aae643cea0699f714480387baad33061b2fae4530d380a988-updateinfo.xml.gz - Cannot download, all mirrors were already tried without success ``` ``` + microdnf install -y cargo tar gzip Downloading metadata... error: cannot update repo 'baseos': repomd.xml parser error: Parse error at line: 1 (Extra content at the end of the document ) ```
1 parent 442088f commit eb8dcce

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/.cspell/project-dictionary.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
almalinux
12
binstall
23
coreutils
34
distro
@@ -15,7 +16,6 @@ nextest
1516
protoc
1617
pwsh
1718
quickinstall
18-
rockylinux
1919
shellcheck
2020
shfmt
2121
syft

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ jobs:
102102
- debian:11-slim # glibc 2.31
103103
- debian:12-slim # glibc 2.36
104104
- fedora:latest # glibc 2.37 (as of fedora 38)
105-
- rockylinux:8 # glibc 2.28
106-
- rockylinux:8-minimal # glibc 2.28
107-
- rockylinux:9 # glibc 2.34
108-
- rockylinux:9-minimal # glibc 2.34
105+
- almalinux:8 # glibc 2.28
106+
- almalinux:8-minimal # glibc 2.28
107+
- almalinux:9 # glibc 2.34
108+
- almalinux:9-minimal # glibc 2.34
109109
- centos:7 # glibc 2.17
110110
- alpine:latest # musl 1.2.4 (as of alpine 3.18)
111111
runs-on: ubuntu-latest
@@ -118,16 +118,16 @@ jobs:
118118
apt-get -o Acquire::Retries=10 -qq update
119119
apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends cargo
120120
if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'debian')
121-
- name: Install requirements (fedora/rockylinux)
121+
- name: Install requirements (fedora/almalinux)
122122
run: |
123123
set -euxo pipefail
124124
dnf=dnf
125125
if ! type -P dnf &>/dev/null; then
126126
dnf=microdnf
127127
fi
128-
# tar and gzip are required for actions/checkout on rockylinux:*-minimal
128+
# tar and gzip are required for actions/checkout on almalinux:*-minimal
129129
$dnf install -y cargo tar gzip
130-
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'rockylinux')
130+
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux')
131131
- name: Install requirements (centos)
132132
run: |
133133
set -euxo pipefail

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ See the linked documentation for information on security when installed using [s
132132

133133
## Compatibility
134134

135-
This action has been tested for GitHub-hosted runners (Ubuntu, macOS, Windows) and containers (Ubuntu, Debian, Alpine, Fedora, CentOS, Rocky).
135+
This action has been tested for GitHub-hosted runners (Ubuntu, macOS, Windows) and containers (Ubuntu, Debian, Alpine, Fedora, CentOS, Alma).
136136
To use this action in self-hosted runners or in containers, at least the following tools are required:
137137

138138
- bash

0 commit comments

Comments
 (0)