-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6eb86f
commit 8a3ba5b
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |