Skip to content

Commit

Permalink
Merge pull request #5519 from AenBleidd/vko_add_new_linux_oss
Browse files Browse the repository at this point in the history
Build linux packages for Debian 12 and Fedora 39
  • Loading branch information
AenBleidd authored Feb 16, 2024
2 parents 3e58d99 + 5f92c67 commit b612219
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 28 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/debrepo/aptly.bookworm.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"rootDir": "http-data/bookworm",
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"architectures": [],
"dependencyFollowSuggests": false,
"dependencyFollowRecommends": false,
"dependencyFollowAllVariants": false,
"dependencyFollowSource": false,
"dependencyVerboseResolve": false,
"gpgDisableSign": false,
"gpgDisableVerify": false,
"gpgProvider": "gpg1",
"downloadSourcePackages": false,
"skipLegacyPool": true,
"ppaDistributorID": "ubuntu",
"ppaCodename": "",
"FileSystemPublishEndpoints": {},
"S3PublishEndpoints": {},
"SwiftPublishEndpoints": {},
"enableMetricsEndpoint": false,
"logLevel": "info",
"logFormat": "default",
"serveInAPIMode": false
}
9 changes: 6 additions & 3 deletions .github/workflows/debrepo/package_depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@ function exit_usage() {

case "$1_$2" in
# ubuntu distros
"jammy_linux_client")
"focal_linux_client")
echo "libc6,libxss1 (>= 1.2.3)"
;;
"focal_linux_client")
"jammy_linux_client")
echo "libc6,libxss1 (>= 1.2.3)"
;;

# debian distros
"buster_linux_client")
echo "libc6,libxss1 (>= 1.2.3)"
;;
"bullseye_linux_client")
echo "libc6,libxss1 (>= 1.2.3)"
;;
"buster_linux_client")
"bookworm_linux_client")
echo "libc6,libxss1 (>= 1.2.3)"
;;

Expand Down
32 changes: 11 additions & 21 deletions .github/workflows/linux-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
needs: prepare-binaries
strategy:
matrix:
os: [jammy, focal, bullseye, buster]
os: [focal, jammy, buster, bullseye, bookworm]
type: [client, manager]
fail-fast: false
env:
Expand Down Expand Up @@ -204,14 +204,14 @@ jobs:
echo "------------------------"
- name: Create Ubuntu Package
if: ${{ success() && ( matrix.os == 'jammy' || matrix.os == 'focal') }}
if: ${{ success() && ( matrix.os == 'focal' || matrix.os == 'jammy' ) }}
run: |
cd ${{ github.workspace }}/
# Build the actual package for Ubuntu with XZ compression
dpkg-deb -Zxz --build "${{ github.workspace }}/${PKG_FULL}"
- name: Create Debian Package
if: ${{ success() && ( matrix.os == 'bullseye' || matrix.os == 'buster') }}
if: ${{ success() && ( matrix.os == 'buster' || matrix.os == 'bullseye' || matrix.os == 'bookworm' ) }}
run: |
cd ${{ github.workspace }}/
# Build the actual package for Debian with GZIP compression
Expand All @@ -238,7 +238,7 @@ jobs:
needs: prepare-binaries
strategy:
matrix:
os: [fc38, fc37, suse15_5, suse15_4]
os: [fc37, fc38, fc39, suse15_4, suse15_5]
type: [client, manager]
fail-fast: false
env:
Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
needs: build-deb-package
strategy:
matrix:
os: [bullseye, buster]
os: [buster, bullseye, bookworm]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -462,7 +462,7 @@ jobs:
needs: build-deb-package
strategy:
matrix:
os: [jammy, focal]
os: [focal, jammy]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -507,7 +507,7 @@ jobs:
needs: build-rpm-package
strategy:
matrix:
os: [37, 38]
os: [37, 38, 39]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand All @@ -519,27 +519,17 @@ jobs:
run: |
dnf install -y python3
- name: Get OS name
if: success()
run: |
if [[ "${{ matrix.os }}" == "37" ]]; then
OS="fc37"
elif [[ "${{ matrix.os }}" == "38" ]]; then
OS="fc38"
fi
echo "OS=${OS}" >> $GITHUB_ENV
- name: Download client
if: success()
uses: actions/download-artifact@v3
with:
name: linux-package_client_${{ env.OS }}_${{ github.event.pull_request.head.sha }}
name: linux-package_client_fc${{ matrix.OS }}_${{ github.event.pull_request.head.sha }}

- name: Download manager
if: success()
uses: actions/download-artifact@v3
with:
name: linux-package_manager_${{ env.OS }}_${{ github.event.pull_request.head.sha }}
name: linux-package_manager_fc${{ matrix.OS }}_${{ github.event.pull_request.head.sha }}

- name: Install client and manager
if: success()
Expand Down Expand Up @@ -612,7 +602,7 @@ jobs:
needs: [test-debian-deb-package, test-ubuntu-deb-package]
strategy:
matrix:
os: [jammy, focal, bullseye, buster]
os: [focal, jammy, buster, bullseye, bookworm]
fail-fast: false
steps:
- name: Check if build is running from origin repo
Expand Down Expand Up @@ -705,7 +695,7 @@ jobs:
needs: [test-fedora-rpm-package, test-opensuse-rpm-package]
strategy:
matrix:
os: [fc38, fc37, suse15_5, suse15_4]
os: [fc37, fc38, fc39, suse15_4, suse15_5]
fail-fast: false
env:
ARCH: x86_64
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/rpmrepo/package_filelist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@

case "$1_$2" in
# fedora variants
"fc37_linux_client")
echo """/etc/boinc-client/*
/etc/default/*
/etc/init.d/*
/etc/bash_completion.d/*
/var/lib/*
/usr/lib/systemd/system/*
/usr/bin/*
/usr/lib/*
"""
;;
"fc38_linux_client")
echo """/etc/boinc-client/*
/etc/default/*
Expand All @@ -30,7 +41,7 @@ case "$1_$2" in
/usr/lib/*
"""
;;
"fc37_linux_client")
"fc39_linux_client")
echo """/etc/boinc-client/*
/etc/default/*
/etc/init.d/*
Expand All @@ -42,6 +53,14 @@ case "$1_$2" in
"""
;;

"fc37_linux_manager")
echo """/usr/bin/*
/usr/share/applications/*
/usr/share/boinc-manager/*
/usr/share/locale/boinc/*
/usr/share/icons/boinc
"""
;;
"fc38_linux_manager")
echo """/usr/bin/*
/usr/share/applications/*
Expand All @@ -50,7 +69,7 @@ case "$1_$2" in
/usr/share/icons/boinc
"""
;;
"fc37_linux_manager")
"fc39_linux_manager")
echo """/usr/bin/*
/usr/share/applications/*
/usr/share/boinc-manager/*
Expand All @@ -60,7 +79,7 @@ case "$1_$2" in
;;

# suse variants
"suse15_5_linux_client")
"suse15_4_linux_client")
echo """/etc/boinc-client/*
/etc/default/*
/etc/init.d/*
Expand All @@ -71,7 +90,7 @@ case "$1_$2" in
/usr/lib/*
"""
;;
"suse15_4_linux_client")
"suse15_5_linux_client")
echo """/etc/boinc-client/*
/etc/default/*
/etc/init.d/*
Expand Down

0 comments on commit b612219

Please sign in to comment.