Skip to content

Commit

Permalink
CI: add Fedora build
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Jan 31, 2025
1 parent b6eb86f commit 8a3ba5b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci_fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Linux Fedora

on: [push]

jobs:
build-linux:
strategy:
matrix:
include:
- qt_version_major: 6
- os: ubuntu-latest

runs-on: ${{matrix.os}}
name: build-${{matrix.os}}-qt${{matrix.qt_version_major}}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: 'mayo'

- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:40
- name: Create container and run build+tests
run: |
{
echo 'FROM fedora:40'
echo 'RUN dnf -y update'
echo 'RUN dnf -y install xorg-x11-server-Xvfb'
echo 'RUN dnf -y install make cmake git gcc-c++'
echo 'RUN dnf -y install qt5-qtbase qt5-qtsvg xcb-util-cursor'
echo 'RUN dnf -y install opencascade-devel'
echo 'RUN dnf -y install assimp assimp-devel'
echo 'RUN dnf clean all'
echo 'COPY mayo mayo'
echo 'WORKDIR /mayo'
echo 'RUN mkdir build'
echo 'RUN cd build'
echo 'RUN cmake --version'
echo 'RUN cmake .. -DMayo_BuildTests=ON -DMayo_BuildPluginAssimp=ON'
echo 'RUN cmake --build . --config Release'
echo 'RUN Xvfb $DISPLAY -screen 0 1280x1024x24 &'
echo 'RUN sleep 5s'
echo 'RUN ./mayo --runtests'
} > podmanfile
podman build --tag fedora40-ci -f ./podmanfile

0 comments on commit 8a3ba5b

Please sign in to comment.