-
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.
Merge branch 'ci/more-os-arch' into develop
- Loading branch information
Showing
10 changed files
with
197 additions
and
149 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,37 @@ | ||
name: Linux Arch x64 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-archlinux: | ||
runs-on: ubuntu-latest | ||
name: build-archlinux-qt5 | ||
|
||
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 docker.io/library/archlinux:latest | ||
- name: Create container and run build+tests | ||
run: | | ||
{ | ||
echo 'FROM archlinux:latest' | ||
echo 'RUN pacman -Syu --noconfirm' | ||
echo 'RUN pacman -Sy --noconfirm make cmake git gcc' | ||
echo 'RUN pacman -Sy --noconfirm qt5-base qt5-svg xcb-util-cursor' | ||
echo 'RUN pacman -Sy --noconfirm opencascade libxi' | ||
echo 'RUN pacman -Sy --noconfirm assimp' | ||
echo 'COPY mayo mayo' | ||
echo 'RUN mkdir /mayo/build' | ||
echo 'WORKDIR /mayo/build' | ||
echo 'RUN cmake .. -DMayo_BuildTests=ON -DMayo_BuildPluginAssimp=ON' | ||
echo 'RUN cmake --build . --parallel --config Release' | ||
} > podmanfile | ||
podman build --tag archlinux-ci -f ./podmanfile |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
name: Linux Fedora x64 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-fedora: | ||
runs-on: ubuntu-latest | ||
name: build-fedora40-qt5 | ||
|
||
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 'WORKDIR /mayo/build' | ||
echo 'RUN cmake .. -DMayo_BuildTests=ON -DMayo_BuildPluginAssimp=ON' | ||
echo 'RUN cmake --build . --parallel --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 |
29 changes: 15 additions & 14 deletions
29
.github/workflows/ci_linux.yml → .github/workflows/ci_linux_ubuntu.yml
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
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,79 @@ | ||
name: Linux Ubuntu armv7 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-ubuntu: | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: armv7 | ||
distro: ubuntu_latest | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get current branch name | ||
uses: nelonoel/[email protected] | ||
|
||
- name: Run Build | ||
uses: uraimo/run-on-arch-action@v2 | ||
with: | ||
arch: ${{matrix.arch}} | ||
distro: ${{matrix.distro}} | ||
|
||
# Not required, but speeds up builds | ||
githubToken: ${{github.token}} | ||
|
||
install: | | ||
apt-get -y update | ||
apt-get -y install cmake git g++ | ||
# Needed to run unit tests | ||
apt-get -y install xvfb | ||
# Install Qt5 | ||
apt-get -y install qtbase5-dev libqt5svg5-dev | ||
# Dependencies for "xcb" Qt plugin(actually needed for Qt6) | ||
apt-get -y install libxcb-cursor0 | ||
# Install OpenCascade | ||
apt-get -y install libocct-data-exchange-dev libocct-draw-dev occt-misc | ||
# Dependencies for OpenCascade | ||
apt-get -y install libtbb-dev libxi-dev | ||
# Install Assimp | ||
apt-get -y install libassimp-dev | ||
env: | | ||
DISPLAY: :0 | ||
GIT_BRANCH_NAME: ${{env.BRANCH_NAME}} | ||
RUN_ARCH_NAME: ${{matrix.arch}} | ||
run: | | ||
git clone --quiet https://github.com/fougue/mayo.git | ||
cd mayo | ||
# Fixes "fatal: detected dubious ownership in repository at '/home/runner/work/mayo/mayo'" | ||
git config --global --add safe.directory `realpath $PWD/..` | ||
echo GIT_BRANCH_NAME=$GIT_BRANCH_NAME | ||
git checkout $GIT_BRANCH_NAME | ||
cd .. | ||
mkdir build | ||
cd build | ||
cmake .. -DMayo_BuildTests=ON -DMayo_BuildPluginAssimp=ON | ||
cmake --build . --config Release --parallel `nproc` | ||
# Execute Unit Tests | ||
# Note: for some unknown reason unit tests are crashing for armv7(on very first test) | ||
## Xvfb $DISPLAY -screen 0 1280x1024x24 & | ||
## sleep 5s | ||
## ./mayo --runtests |
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
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: Windows | ||
name: Windows x64 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-windows-msvc: | ||
build-windows: | ||
strategy: | ||
matrix: | ||
include: | ||
|
Oops, something went wrong.