@@ -4,77 +4,73 @@ This directory contains scripts for building and testing SQLPage packages.
44
55## Available Scripts
66
7- ### ` build-deb.sh `
8- Builds a Debian/Ubuntu ` .deb ` package.
7+ ### ` ci- build-deb.sh`
8+ Builds a Debian/Ubuntu ` .deb ` package for CI environments .
99
1010** Requirements:**
1111- Debian or Ubuntu system (or container)
1212- ` debhelper ` , ` dpkg-dev ` , ` cargo ` , and build dependencies
1313
1414** Usage:**
1515``` bash
16- ./scripts/build-deb.sh
16+ ./scripts/ci- build-deb.sh
1717```
1818
19- ** Output:** ` .. /sqlpage_*.deb`
19+ ** Output:** ` build-output /sqlpage_*.deb`
2020
21- ### ` build-rpm.sh `
22- Builds an RPM package for Fedora, RHEL, Rocky Linux, etc.
21+ ### ` ci- build-rpm.sh`
22+ Builds an RPM package for Fedora, RHEL, Rocky Linux, etc. for CI environments.
2323
2424** Requirements:**
2525- RPM-based system (or container)
2626- ` rpm-build ` , ` rpmdevtools ` , ` cargo ` , and build dependencies
2727
2828** Usage:**
2929``` bash
30- ./scripts/build-rpm.sh
30+ ./scripts/ci- build-rpm.sh
3131```
3232
3333** Output:** ` ~/rpmbuild/RPMS/x86_64/sqlpage*.rpm ` and ` ~/rpmbuild/SRPMS/sqlpage*.rpm `
3434
35- ### ` test-packages .sh `
36- Tests package installation across multiple distributions using Docker .
35+ ### ` ci- test-package .sh`
36+ Tests package installation on a single distribution .
3737
3838** Requirements:**
39- - Docker installed and running
40- - Built packages available
39+ - Package file available
40+ - Appropriate package manager (apt/dnf/yum)
4141
4242** Usage:**
4343``` bash
44- ./scripts/test-packages .sh
44+ ./scripts/ci- test-package .sh [package-file]
4545```
4646
47- Tests packages on:
48- - Debian: bookworm, bullseye
49- - Ubuntu: 24.04, 22.04
50- - Fedora: latest, 39
51- - Rocky Linux: 9, 8
47+ Tests package installation, systemd service, and basic functionality.
5248
5349## Quick Start
5450
55- ### Building Both Package Types in Docker
51+ ### Building Packages in Docker
5652
5753** Debian package:**
5854``` bash
5955docker run -it -v $( pwd) :/workspace -w /workspace debian:bookworm bash -c "
6056 apt-get update && \
6157 apt-get install -y debhelper cargo rustc unixodbc-dev freetds-dev libssl-dev pkg-config dpkg-dev && \
62- ./scripts/build-deb.sh
58+ ./scripts/ci- build-deb.sh
6359"
6460```
6561
6662** RPM package:**
6763``` bash
6864docker run -it -v $( pwd) :/workspace -w /workspace fedora:latest bash -c "
6965 dnf install -y rpm-build rpmdevtools rust cargo openssl-devel unixODBC-devel freetds-devel systemd-rpm-macros git && \
70- ./scripts/build-rpm.sh
66+ ./scripts/ci- build-rpm.sh
7167"
7268```
7369
7470## CI/CD Integration
7571
7672These scripts are integrated into GitHub Actions workflows:
77- - ` .github/workflows/packages.yml ` - Main package building and testing
73+ - ` .github/workflows/packages.yml ` - Package building and testing
7874- ` .github/workflows/release.yml ` - Release automation
7975
8076Packages are automatically:
0 commit comments