Test CI #11
Workflow file for this run
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
name: MVE GitHub Actions CI | |
on: | |
push: | |
branches: [ "master", "gh_ci_test" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: ${{ matrix.platform.name }} | |
runs-on: ${{ matrix.platform.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- { name: Ubuntu 20.04 GCC (x86_64), os: ubuntu-20.04, cpp_compiler: g++ } | |
- { name: Ubuntu 20.04 Clang (x86_64), os: ubuntu-20.04, cpp_compiler: clang++ } | |
- { name: Ubuntu 22.04 GCC (x86_64), os: ubuntu-22.04, cpp_compiler: g++ } | |
- { name: Ubuntu 22.04 Clang (x86_64), os: ubuntu-22.04, cpp_compiler: clang++ } | |
- { name: Ubuntu 24.04 GCC (x86_64), os: ubuntu-24.04, cpp_compiler: g++ } | |
- { name: Ubuntu 24.04 Clang (x86_64), os: ubuntu-24.04, cpp_compiler: clang++ } | |
- { name: macOS 12 (x86_64), os: macos-12, cpp_compiler: clang++ } | |
- { name: macOS 13 (x86_64), os: macos-13, cpp_compiler: clang++ } | |
- { name: macOS 14 (arm64), os: macos-14, cpp_compiler: clang++ } | |
env: | |
CXX: ${{ matrix.platform.cpp_compiler }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ubuntu dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
build-essential \ | |
clang \ | |
libgl-dev \ | |
libgtest-dev \ | |
libjpeg-turbo8-dev \ | |
libomp-dev \ | |
libpng-dev \ | |
libqt5opengl5-dev \ | |
libtiff-dev \ | |
pkg-config \ | |
zlib1g-dev | |
- name: Install macOS dependencies | |
if: runner.os == 'macOS' | |
run: | | |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | |
brew update | |
# Only run "brew upgrade" on macOS 13 or higher because on macOS 12 | |
# the command will fail because brew cannot upgrade xcbeautify. I | |
# assume this is because there is no Bottle (binary package) for | |
# xcbeautify on macOS 12 and rebuilding xcbeautify | |
#if [ "`sw_vers -productVersion | cut -d '.' -f 1`" != "12" ]; then | |
# brew upgrade | |
#fi | |
brew install -q \ | |
googletest \ | |
jpeg-turbo \ | |
libpng \ | |
libtiff \ | |
qt@5 | |
brew link qt@5 | |
- name: Build MVE on Linux/macOS | |
run: | | |
${CXX} --version | |
uname -a | |
if [ "`uname`" = "Darwin" ]; then | |
export NUM_CPU_CORES="`sysctl -n hw.ncpu`" | |
else | |
export NUM_CPU_CORES="`nproc`" | |
fi | |
make -j${NUM_CPU_CORES} | |
cd apps/umve | |
qmake | |
make -j${NUM_CPU_CORES} | |
cd ../.. | |
make -j${NUM_CPU_CORES} test | |
- name: Run tests | |
run: ./tests/test | |