Skip to content

Commit

Permalink
Misc Fedora-related improvements (#638)
Browse files Browse the repository at this point in the history
* actions: Drop Fedora 39

Fedora 39 drops is EOL from 12 Nov 2024.

Signed-off-by: Priit Laes <[email protected]>

* Sync list of required Fedora dependencies

Additionally splits out list of required Fedora dependencies
into separate variable in github actions.

Fixes #637

Signed-off-by: Priit Laes <[email protected]>

* actions: Fedora: Add Rawhide

Include Rawhide in the build matrix as well to spot upcoming issues,
first one would be dropping support for OpenJDK 17 in favor of
Adoptium managed Eclipse Temurin releases via separate repsitory:
https://fedoraproject.org/wiki/Changes/ThirdPartyLegacyJdks

Ideally this build should be gated as `allow-fail`, but
unfortunately github actions does not support it yet.

Signed-off-by: Priit Laes <[email protected]>

* actions: Fedora: Use Java 21 (LTS)

Java 17 was already deprecated since Fedora 39, and
is already dropped in upcoming Fedora 42 (current Rawhide).

Signed-off-by: Priit Laes <[email protected]>

* actions: fedora: fix minizip dependency

Apparently we need to use minizip-ng-compat library for MiniZip support

Signed-off-by: Priit Laes <[email protected]>

---------

Signed-off-by: Priit Laes <[email protected]>
  • Loading branch information
plaes authored Nov 18, 2024
1 parent 492edb6 commit 47168f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ permissions:
env:
BUILD_NUMBER: ${{ github.run_number }}
CMAKE_BUILD_PARALLEL_LEVEL: 4
# Required dependencies (does not include packaging and optional dependencies)
FEDORA_DEPS: cmake gcc-c++ libtool-ltdl-devel libxml2-devel minizip-ng-compat-devel zlib-devel xmlsec1-openssl-devel
UBUNTU_DEPS: cmake libxml2-dev libxmlsec1-dev zlib1g-dev
jobs:
macos:
Expand Down Expand Up @@ -72,18 +74,12 @@ jobs:
container: fedora:${{ matrix.container }}
strategy:
matrix:
container: [39, 40, 41]
container: [40, 41, rawhide]
steps:
- name: Install Deps
run: |
dnf install -y --setopt=install_weak_deps=False \
git gcc-c++ cmake rpm-build libxml2-devel xmlsec1-openssl-devel libtool-ltdl-devel zlib-devel doxygen boost-test swig python3-devel java-17-openjdk-devel minizip-devel
- name: Install CMake
if: matrix.container == 39
run: |
dnf install -y --setopt=install_weak_deps=False wget
wget -q https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-linux-x86_64.sh
sh cmake-3.28.1-linux-x86_64.sh --skip-license --prefix=/usr/local
${FEDORA_DEPS} doxygen boost-test swig python3-devel java-21-openjdk-devel rpm-build git
- name: Checkout
uses: actions/checkout@v4
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Ubuntu
sudo apt install cmake libxml2-dev libxmlsec1-dev zlib1g-dev
# Fedora
sudo dnf install cmake gcc-c++ openssl-devel libxml2-devel xmlsec1-openssl-devel libtool-ltdl-devel zlib-devel
sudo dnf install cmake gcc-c++ libtool-ltdl-devel libxml2-devel minizip-ng-compat-devel openssl-devel zlib-devel xmlsec1-openssl-devel

* doxygen - Optional, for API documentation
* libboost-test-dev - Optional, for unittests
Expand Down

0 comments on commit 47168f7

Please sign in to comment.