Skip to content

Commit

Permalink
fedora40
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed Mar 22, 2024
1 parent 7eb2217 commit 7a3cd24
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build-release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,28 @@ jobs:
retention-days: 1
if-no-files-found: error

fedora-40:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
# docker login is needed for pushing the build image
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# if image defined by variable cr_image_version is not pullable aka does not exist it will be created and pushed
- run: docker pull ${{ env.cr_image }}-${{ github.job }}:${{ env.cr_image_version }} || /usr/bin/docker build -t ${{ env.cr_image }}-${{ github.job }}:${{ env.cr_image_version }} -f build/docker/Dockerfile-${{ github.job }} .
- run: docker push ${{ env.cr_image }}-${{ github.job }}:${{ env.cr_image_version }}
# building in precompiled image makes them way faster instead of creating the build environment every time from scratch
- run: /usr/bin/docker run -v ${{ github.workspace }}:/nagstamon ${{ env.cr_image }}-${{ github.job }}:${{ env.cr_image_version }}
- uses: actions/upload-artifact@v3
with:
path: build/*.rpm
retention-days: 1
if-no-files-found: error

rhel-9:
runs-on: ubuntu-latest
needs: test
Expand Down Expand Up @@ -255,7 +277,7 @@ jobs:
repo-debian:
runs-on: ubuntu-latest
# try to avoid race condition and start uploading only after the last install package has been build
needs: [debian, fedora-37, fedora-38, fedora-39, rhel-9, macos, windows-32, windows-64, windows-64-debug]
needs: [debian, fedora-37, fedora-38, fedora-39, fedora-40, rhel-9, macos, windows-32, windows-64, windows-64-debug]
env:
family: debian
steps:
Expand Down
27 changes: 27 additions & 0 deletions build/docker/Dockerfile-fedora-40
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM fedora:40
LABEL [email protected]

RUN dnf -y upgrade

RUN dnf -y install createrepo_c \
desktop-file-utils \
git \
python3 \
python3-beautifulsoup4 \
python3-cryptography \
python3-dateutil \
python3-devel \
python3-keyring \
python3-lxml \
python3-psutil \
python3-pyqt6 \
python3-pyqt6-devel \
python3-requests \
python3-requests-kerberos \
python3-SecretStorage \
qt6-qtsvg \
qt6-qtmultimedia \
rpm-build

CMD cd /nagstamon/build && \
/usr/bin/python3 build.py

0 comments on commit 7a3cd24

Please sign in to comment.