Skip to content

Commit c5fd957

Browse files
themilchenkooleg-jukovec
authored andcommitted
ci: add almalinux platform to packaging
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
1 parent 955d019 commit c5fd957

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
if: |
1010
github.event_name == 'push' ||
1111
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v2
1515

.github/workflows/packaging.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
platform:
18+
- { os: 'almalinux', dist: '8'}
19+
- { os: 'almalinux', dist: '9'}
1820
- { os: 'debian', dist: 'stretch' }
1921
- { os: 'debian', dist: 'buster' }
2022
- { os: 'debian', dist: 'bullseye' }

rpm/prebuild.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,21 @@
22

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

5-
curl -LsSf https://www.tarantool.io/release/1.10/installer.sh | sudo bash
5+
os=""
6+
dist=""
7+
if [ -f /etc/os-release ]; then
8+
. /etc/os-release
9+
os="$ID"
10+
dist="$VERSION_ID"
11+
fi
12+
13+
# The installer script is ending with unexpected error of unsupported OS for
14+
# "Almalinux 9". Here we fix this by overriding the cenos-release file so that
15+
# the enviroment settings work correctly.
16+
if [[ "$os" == "almalinux" && "$dist" == 9* ]]; then
17+
sudo sh -c "echo 8 > /etc/centos-release"
18+
curl -LsSf https://tarantool.io/release/3/installer.sh | sudo bash
19+
else
20+
# We need to execute the 1.10 script due to it works for other platforms.
21+
curl -LsSf https://tarantool.io/release/1.10/installer.sh | sudo bash
22+
fi

0 commit comments

Comments
 (0)