Skip to content

Commit

Permalink
ci: add almalinux platform to packaging
Browse files Browse the repository at this point in the history
Almalinux 8, 9 needs to be supported and wasn't included to the platform
list, but `packpack/packpack` supports it.

After the patch this platform has been included.

Closes #128
  • Loading branch information
themilchenko committed Oct 3, 2024
1 parent 955d019 commit d4e478c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
16 changes: 15 additions & 1 deletion rpm/prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d4e478c

Please sign in to comment.