Skip to content

Commit 0142cc5

Browse files
committed
ci: package correct format
`packpack` tool for debian packaging required several small files with format and compat data.
1 parent a89afbd commit 0142cc5

6 files changed

Lines changed: 69 additions & 7 deletions

File tree

.github/workflows/citests.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: citests
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
package:
9+
runs-on: ubuntu-24.04
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
platform:
15+
- { os: 'debian', dist: 'bullseye' }
16+
- { os: 'debian', dist: 'buster' }
17+
- { os: 'ubuntu', dist: 'trusty' }
18+
- { os: 'ubuntu', dist: 'noble' }
19+
- { os: 'ubuntu', dist: 'focal' }
20+
- { os: 'ubuntu', dist: 'groovy' }
21+
- { os: 'ubuntu', dist: 'jammy' }
22+
23+
env:
24+
OS: ${{ matrix.platform.os }}
25+
DIST: ${{ matrix.platform.dist }}
26+
RPM_SPEC: rpm/sharded-queue.spec
27+
28+
steps:
29+
- name: Clone the module
30+
uses: actions/checkout@v4
31+
# `actions/checkout` performs shallow clone of repo. To provide
32+
# proper version of the package to `packpack` we need to have
33+
# complete repository, otherwise it will be `0.0.1`.
34+
with:
35+
fetch-depth: 0
36+
37+
- name: Clone the packpack tool
38+
uses: actions/checkout@v4
39+
with:
40+
repository: packpack/packpack
41+
path: packpack
42+
43+
- name: Fetch tags
44+
# Found that Github checkout Actions pulls all the tags, but
45+
# right it deannotates the testing tag, check:
46+
# https://github.com/actions/checkout/issues/290
47+
# But we use 'git describe ..' calls w/o '--tags' flag and it
48+
# prevents us from getting the needed tag for packages version
49+
# setup. To avoid of it, let's fetch it manually, to be sure
50+
# that all tags will exist always.
51+
run: git fetch --tags -f
52+
53+
- name: Check packages changelog
54+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
55+
run: |
56+
./debian/update_debian_changelog.sh "${GITHUB_REF#refs/tags/}"
57+
./rpm/update_rpm_changelog.sh "${GITHUB_REF#refs/tags/}"
58+
59+
- name: Create packages
60+
run: ./packpack/packpack

.github/workflows/packaging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ jobs:
5252
matrix:
5353
platform:
5454
- { os: 'debian', dist: 'stretch' }
55-
- { os: 'debian', dist: 'bullseye' }
56-
- { os: 'ubuntu', dist: 'xenial' }
57-
- { os: 'ubuntu', dist: 'bionic' }
55+
- { os: 'debian', dist: 'buster' }
56+
- { os: 'ubuntu', dist: 'hirsute' }
57+
- { os: 'ubuntu', dist: 'eoan' }
5858
- { os: 'ubuntu', dist: 'focal' }
5959
- { os: 'ubuntu', dist: 'groovy' }
6060
- { os: 'ubuntu', dist: 'jammy' }

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ Source: sharded-queue
22
Priority: optional
33
Section: database
44
Maintainer: Oleg Jukovec <oleg.jukovec@tarantool.org>
5-
Build-Depends: debhelper-compat (= 13),
6-
tarantool (>= 3.0.2.0),
5+
Build-Depends: debhelper (>= 9),
6+
tarantool (>= 1.7.4.0)
77
Standards-Version: 3.9.6
88
Homepage: https://github.com/tarantool/sharded-queue
99
Vcs-Git: git://github.com/tarantool/sharded-queue.git
1010
Vcs-Browser: https://github.com/tarantool/sharded-queue
1111

1212
Package: sharded-queue
1313
Architecture: all
14-
Depends: tarantool (>= 3.0.2.0), ${misc:Depends}
14+
Depends: tarantool (>= 1.7.4.0), ${misc:Depends}
1515
Description: Tarantool Sharded Queue Application
1616
This module provides roles for the Tarantool 3 and for the Tarantool Cartridge
1717
implementing of a distributed queue compatible with Tarantool queue (fifiottl driver).

debian/prebuild.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

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

5-
curl -LsSf https://www.tarantool.io/release/3/installer.sh | sudo bash
5+
curl -LsSf https://www.tarantool.io/release/1.18/installer.sh | sudo bash

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)