From 428628f6ff55efc69f280e3c93753fa51b961ffc Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 22 Oct 2026 17:26:38 +0200 Subject: [PATCH] [ci] Adding additional Linux, Windows and MacOS build tests In addition, switching to a smaller build setup that avoids building OIDN. --- .github/workflows/public.yml | 93 ++++++++++++++++++++++++++++++++---- scripts/build_small.sh | 18 +++++++ 2 files changed, 102 insertions(+), 9 deletions(-) create mode 100755 scripts/build_small.sh diff --git a/.github/workflows/public.yml b/.github/workflows/public.yml index 3208bd5e..0b29b9fd 100644 --- a/.github/workflows/public.yml +++ b/.github/workflows/public.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Install packages (rocky 8) run: | - yum -y install gcc-c++ clang tar git-lfs make tbb-devel python3 + yum -y install gcc-c++ clang tar git-lfs make python3 yum -y install cmake - name: Checkout Repository uses: actions/checkout@v4 @@ -31,20 +31,56 @@ jobs: - name: Build and Run run: | - scripts/build.sh + scripts/build_small.sh + rocky-9: + runs-on: ubuntu-latest + container: + image: rockylinux:9 + steps: + - name: Install packages (rocky 9) + run: | + yum -y install gcc-c++ clang tar git-lfs make python3 + yum -y install cmake + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Build and Run + run: | + scripts/build_small.sh + + ubuntu-24_04: + runs-on: ubuntu-latest + container: + image: ubuntu:24.04 + steps: + - name: Install packages (ubuntu 24.04) + run: | + apt-get update + apt-get -y install g++ clang git-lfs libtbb-dev python3 + apt-get -y install cmake + cmake --version + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Build and Run + run: | + scripts/build_small.sh - ubuntu-22_04: + ubuntu-26_04: runs-on: ubuntu-latest container: - image: ubuntu:22.04 + image: ubuntu:26.04 steps: - - name: Install packages (ubuntu 22.04) + - name: Install packages (ubuntu 26.04) run: | apt-get update - apt-get -y upgrade - apt-get -y install g++ clang git-lfs libtbb-dev python3 pip - pip install --upgrade cmake + apt-get -y install g++ clang git-lfs python3 + apt-get -y install cmake cmake --version - name: Checkout Repository uses: actions/checkout@v4 @@ -53,4 +89,43 @@ jobs: - name: Build and Run run: | - scripts/build.sh + scripts/build_small.sh + + windows: + runs-on: windows-latest + steps: + - name: Install packages (Windows) + shell: pwsh + run: | + # CMake, Git, Python and MSVC are preinstalled on the image. + # Clang/LLVM is usually there too; install it if you need a specific version: + # vcpkg install tbb:x64-windows + cmake --version + + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Build and Run + shell: bash + run: | + scripts/build_small.sh + + macos: + runs-on: macos-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Install packages (macOS) + run: | + # Apple Clang, Git, Python 3 and CMake come preinstalled. + # brew install tbb git-lfs + cmake --version + + - name: Build and Run + run: | + scripts/build_small.sh diff --git a/scripts/build_small.sh b/scripts/build_small.sh new file mode 100755 index 00000000..e540b602 --- /dev/null +++ b/scripts/build_small.sh @@ -0,0 +1,18 @@ +#!/bin/bash +## Copyright 2019-2020 Intel Corporation +## SPDX-License-Identifier: Apache-2.0 + +mkdir build +cd build + +cmake --version + +cmake \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_OIDN=OFF \ + -DDOWNLOAD_ISPC=OFF \ + -DBUILD_TOOLS=ON \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ + "$@" ../superbuild + +cmake --build .