diff --git a/.github/workflows/test-install-scripts.yml b/.github/workflows/test-install-scripts.yml index 138c4a83c2..83c8696b72 100644 --- a/.github/workflows/test-install-scripts.yml +++ b/.github/workflows/test-install-scripts.yml @@ -95,6 +95,9 @@ jobs: # type: fedora # # (35, 3.10) https://packages.fedoraproject.org/search?query=python3&releases=Fedora+35&start=0 # url: "docker://fedora:35" + - name: rockylinux:8 + type: rocky + url: "docker://rockylinux:8" - name: ubuntu:bionic (18.04) type: ubuntu # https://packages.ubuntu.com/bionic/python3.7 (18.04, 3.7) @@ -155,6 +158,11 @@ jobs: run: | yum install --assumeyes git + - name: Prepare Rocky + if: ${{ matrix.distribution.type == 'rocky' }} + run: | + yum install --assumeyes git sudo + - name: Prepare Ubuntu if: ${{ matrix.distribution.type == 'ubuntu' }} env: diff --git a/install.sh b/install.sh index 5fc39444a6..0850db5703 100644 --- a/install.sh +++ b/install.sh @@ -160,6 +160,10 @@ if [ "$(uname)" = "Linux" ]; then if ! command -v python3.9 >/dev/null 2>&1; then install_python3_and_sqlite3_from_source_with_yum fi + elif type yum >/dev/null 2>&1 && [ -f "/etc/redhat-release" ] && grep Rocky /etc/redhat-release; then + echo "Installing on Rocky." + # TODO: make this smarter about getting the latest version + sudo yum install --assumeyes python39 elif type yum >/dev/null 2>&1 && [ -f "/etc/redhat-release" ] || [ -f "/etc/fedora-release" ]; then # Redhat or Fedora echo "Installing on Redhat/Fedora."