Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PE-1861] debian/control: Updated dependencies from Ubuntu Jammy and Noble #121

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
matrix:
os:
- ubuntu-20.04
# # Disable jammy
# - ubuntu-22.04
- ubuntu-22.04
- ubuntu-24.04
cc:
- gcc
# # Disable Clang (enable required: matrix.include.cc: clang)
Expand All @@ -48,7 +48,7 @@ jobs:
CFLAGS: ${{ matrix.CFLAGS }}
steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fetch update package information
run: sudo apt-get update --assume-yes
Expand All @@ -69,9 +69,9 @@ jobs:
run: make package-deb

- name: Upload package(s)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Packages
name: Packages-${{ matrix.os }}
path: |
schaufel_*.buildinfo
schaufel_*.changes
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
---
name: Test Schaufel

# Run this workflow every time a new commit pushed to your repository
on:
push:
#branches: '**'
#branches-ignore: 'main'

pull_request:
#branches: '**'
#branches-ignore: 'main'
Expand All @@ -25,12 +22,14 @@ jobs:
strategy:
matrix:
# also test 'latest', eventually this will be upgraded to a newer version and might fail early
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
#os: [ubuntu-latest]
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Versions
run: echo "${{ matrix.os }}"
Expand Down Expand Up @@ -74,14 +73,14 @@ jobs:
run: diff -q src/main.c main.c
pr-test-freebsd:
name: Test Schaufel on FreeBSD
runs-on: macos-12
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Run FreeBSD test
id: test
uses: vmactions/freebsd-vm@v0
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ DOCS = $(patsubst man/%, doc/%.pdf , $(wildcard man/*))
SCHAUFEL_VERSION ?= 0.11

ARCH = $(shell uname -m)
# OS_ID = $(shell cat /etc/os-release | awk -F= '{if ($$1=="ID") print $$2}')
OS_ID = $(shell cat /etc/os-release | awk -F= '{if ($$1=="ID") print $$2}')
# OS_VERSION_ID = $(shell cat /etc/os-release | awk -F= '{if ($$1=="VERSION_ID") print $$2}')
OS_VERSION_ID_NUMERIC = $(shell cat /etc/os-release | awk -F= '{if ($$1=="VERSION_ID") print $$2}' | tr -d \"\.)
CC_VERSION = $(shell $(CC) -dumpversion | awk -F. '{print $$1}')
# PACKAGE_DEB_DIR = schaufel-$(SCHAUFEL_VERSION)-$(OS_ID)$(OS_VERSION_ID)-$(CC)$(CC_VERSION)-$(ARCH)
PACKAGE_DEB_DIR = schaufel-$(SCHAUFEL_VERSION)-$(CC)$(CC_VERSION)-$(ARCH)
Expand Down Expand Up @@ -95,3 +96,8 @@ package-deb: all
$(INSTALL) -m 0644 LICENSE $(PACKAGE_DEB_DIR)/DEBIAN/copyright
ln -s DEBIAN $(PACKAGE_DEB_DIR)/debian
cd $(PACKAGE_DEB_DIR) && dpkg-buildpackage --build=binary
cd ../

for _extension in buildinfo changes deb; do \
mv schaufel_${SCHAUFEL_VERSION}_amd64.$${_extension} schaufel_${SCHAUFEL_VERSION}_${OS_ID}${OS_VERSION_ID_NUMERIC}_amd64.$${_extension}; \
done
8 changes: 3 additions & 5 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ Build-Depends: debhelper (>= 12),
Standards-Version: 0.11

Package: schaufel
Version: 0.11
Architecture: any
Multi-Arch: foreign
Pre-Depends: dh-systemd (>= 12),
Pre-Depends: dh-systemd (>= 12) | debhelper (>= 12),
dpkg
Depends: libconfig9 (>= 1.5~),
libhiredis0.14 (>= 0.14~),
libjson-c4 (>= 0.13~),
libhiredis0.14 (>= 0.14~) | libhiredis1.1.0 (>= 1.2~),
libjson-c4 (>= 0.13~) | libjson-c5 (>= 0.15~),
libpq5 (>= 12.~),
librdkafka1 (>= 1.2~)
Description: schaufel aims to be a swiss army knife for moving data.
Expand Down