Skip to content

Commit 6290de6

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 6290de6

3 files changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/citests.yml

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

debian/compat

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

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)