Skip to content

Commit 2408ef6

Browse files
cursoragentlovasoa
andcommitted
Fix: Adjust packaging for CI and local builds
Co-authored-by: contact <[email protected]>
1 parent 9b74ea0 commit 2408ef6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/packages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ jobs:
9191
runs-on: ubuntu-latest
9292
container: fedora:latest
9393
steps:
94+
- name: Install git for checkout
95+
run: dnf install -y git
96+
9497
- uses: actions/checkout@v4
9598
with:
9699
fetch-depth: 0
@@ -106,8 +109,7 @@ jobs:
106109
openssl-devel \
107110
systemd-rpm-macros \
108111
unixODBC-devel \
109-
freetds-devel \
110-
git
112+
freetds-devel
111113
112114
- name: Set up RPM build tree
113115
run: rpmdev-setuptree

PACKAGING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ dch -v $(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/
145145
# Build package
146146
dpkg-buildpackage -us -uc -b
147147

148+
# If building in an environment where Rust isn't installed via dpkg packages:
149+
# dpkg-buildpackage -us -uc -b -d
150+
148151
# Check package
149152
lintian ../sqlpage_*.deb
150153
```

debian/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Source: sqlpage
22
Section: web
33
Priority: optional
44
Maintainer: SQLPage Contributors <[email protected]>
5+
# Note: cargo/rustc listed for local builds; CI uses -d flag with toolchain action
56
Build-Depends: debhelper-compat (= 13),
67
cargo (>= 1.70),
78
rustc (>= 1.70),

0 commit comments

Comments
 (0)