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 4, 2024
1 parent 955d019 commit 9012372
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

Expand Down
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
15 changes: 14 additions & 1 deletion rpm/prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,17 @@

set -exu # Strict shell (w/o -o pipefail)

curl -LsSf https://www.tarantool.io/release/1.10/installer.sh | sudo bash
os=""
dist=""
if [ -f /etc/os-release ]; then
. /etc/os-release
os="$ID"
dist="$VERSION_ID"
fi

if [[ "$os" == "almalinux" && "$dist" == 9* ]]; then
curl -LsSf https://tarantool.io/release/3/installer.sh | \
sed '2s/^/echo 8 > \/etc\/centos-release\n/' | sudo bash
else
curl -LsSf https://tarantool.io/release/1.10/installer.sh | sudo bash
fi

0 comments on commit 9012372

Please sign in to comment.