diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 9ac0307..64c2a07 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -15,6 +15,8 @@ jobs: fail-fast: false matrix: platform: + - { os: 'almalinux', dist: '8'} + - { os: 'almalinux', dist: '9'} - { os: 'debian', dist: 'stretch' } - { os: 'debian', dist: 'buster' } - { os: 'debian', dist: 'bullseye' } diff --git a/rpm/prebuild.sh b/rpm/prebuild.sh index b380f95..b1c80bf 100755 --- a/rpm/prebuild.sh +++ b/rpm/prebuild.sh @@ -2,4 +2,18 @@ set -exu # Strict shell (w/o -o pipefail) -curl -LsSf https://www.tarantool.io/release/1.10/installer.sh | sudo bash +if [ -f /etc/os-release ]; then + . /etc/os-release + os="$ID" + dist="$VERSION_ID" +else + os="" + dist="" +fi + +if [[ "$os" == "almalinux" && "$dist" == "9" ]]; then + curl -LsSf https://tarantool.io/release/1.10/installer.sh | \ + sed '2s/^/echo 9 > \/etc\/centos-release\n/' | sudo bash +else + curl -LsSf https://tarantool.io/release/1.10/installer.sh | sudo bash +fi