Merge remote-tracking branch 'origin/main'
This commit is contained in:
+49
-51
@@ -3,6 +3,9 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
# Daily at 03:17 UTC to keep ccache/dependency caches warm
|
||||||
|
- cron: '17 3 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-test:
|
build-test:
|
||||||
@@ -10,9 +13,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [warp-ubuntu-latest-x64-16x, warp-macos-15-arm64-12x, warp-windows-latest-x64-32x]
|
os: [ubuntu-24.04, macos-15, windows-latest]
|
||||||
env:
|
env:
|
||||||
CMAKE_BUILD_TYPE: Release
|
CMAKE_BUILD_TYPE: Release
|
||||||
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
|
CCACHE_MAXSIZE: 1G
|
||||||
# Enable OFX integration tests that require external plugin bundles
|
# Enable OFX integration tests that require external plugin bundles
|
||||||
RUN_OFX_ITEST: "1"
|
RUN_OFX_ITEST: "1"
|
||||||
# Enable plugin subsystem smoke tests
|
# Enable plugin subsystem smoke tests
|
||||||
@@ -35,7 +40,7 @@ jobs:
|
|||||||
qt6-base-dev qt6-base-dev-tools qt6-base-private-dev qt6-tools-dev qt6-tools-dev-tools \
|
qt6-base-dev qt6-base-dev-tools qt6-base-private-dev qt6-tools-dev qt6-tools-dev-tools \
|
||||||
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev \
|
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev \
|
||||||
libopencolorio-dev libopenimageio-dev libopenexr-dev libexpat1-dev \
|
libopencolorio-dev libopenimageio-dev libopenexr-dev libexpat1-dev \
|
||||||
portaudio19-dev libgl1-mesa-dev libxkbcommon-dev
|
portaudio19-dev libgl1-mesa-dev libxkbcommon-dev ccache
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# macOS dependencies
|
# macOS dependencies
|
||||||
@@ -44,12 +49,24 @@ jobs:
|
|||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install ninja pkg-config qt@6 ffmpeg openimageio opencolorio openexr portaudio expat molten-vk vulkan-headers
|
brew install ninja pkg-config ccache qt@6 ffmpeg openimageio opencolorio openexr portaudio expat molten-vk vulkan-headers
|
||||||
echo "$(brew --prefix qt@6)/bin" >> "$GITHUB_PATH"
|
echo "$(brew --prefix qt@6)/bin" >> "$GITHUB_PATH"
|
||||||
echo "CMAKE_PREFIX_PATH=$(brew --prefix qt@6)" >> "$GITHUB_ENV"
|
echo "CMAKE_PREFIX_PATH=$(brew --prefix qt@6)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Build OpenTimelineIO (macOS)
|
- name: Cache OpenTimelineIO (macOS)
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
|
id: otio-cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: otio-install
|
||||||
|
key: otio-0.16.0-${{ runner.os }}-v1
|
||||||
|
|
||||||
|
- name: Set OTIO location (macOS)
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: echo "OTIO_LOCATION=${PWD}/otio-install" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Build OpenTimelineIO (macOS)
|
||||||
|
if: runner.os == 'macOS' && steps.otio-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch v0.16.0 https://github.com/PixarAnimationStudios/OpenTimelineIO.git
|
git clone --depth 1 --branch v0.16.0 https://github.com/PixarAnimationStudios/OpenTimelineIO.git
|
||||||
cmake -S OpenTimelineIO -B OpenTimelineIO/build -G Ninja \
|
cmake -S OpenTimelineIO -B OpenTimelineIO/build -G Ninja \
|
||||||
@@ -87,6 +104,20 @@ jobs:
|
|||||||
mingw-w64-ucrt-x86_64-vulkan-headers
|
mingw-w64-ucrt-x86_64-vulkan-headers
|
||||||
mingw-w64-ucrt-x86_64-vulkan-loader
|
mingw-w64-ucrt-x86_64-vulkan-loader
|
||||||
mingw-w64-ucrt-x86_64-make
|
mingw-w64-ucrt-x86_64-make
|
||||||
|
mingw-w64-ucrt-x86_64-ccache
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------
|
||||||
|
# Compile cache (ccache) — restored before configure so the launcher
|
||||||
|
# flags below pick it up on all three platforms
|
||||||
|
# ------------------------------------------------------------------
|
||||||
|
- name: Restore ccache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ github.workspace }}/.ccache
|
||||||
|
key: ccache-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
ccache-${{ runner.os }}-${{ github.ref_name }}-
|
||||||
|
ccache-${{ runner.os }}-
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# Configure
|
# Configure
|
||||||
@@ -99,6 +130,8 @@ jobs:
|
|||||||
-DBUILD_QT6=ON \
|
-DBUILD_QT6=ON \
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=ON \
|
-DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=ON \
|
||||||
-DOCIO_LOCATION=/usr \
|
-DOCIO_LOCATION=/usr \
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||||
|
|
||||||
- name: Configure (macOS)
|
- name: Configure (macOS)
|
||||||
@@ -109,6 +142,8 @@ jobs:
|
|||||||
-DBUILD_QT6=ON \
|
-DBUILD_QT6=ON \
|
||||||
-DOCIO_LOCATION=$(brew --prefix opencolorio) \
|
-DOCIO_LOCATION=$(brew --prefix opencolorio) \
|
||||||
-DOTIO_LOCATION=${OTIO_LOCATION} \
|
-DOTIO_LOCATION=${OTIO_LOCATION} \
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||||
|
|
||||||
- name: Configure (Windows)
|
- name: Configure (Windows)
|
||||||
@@ -118,6 +153,8 @@ jobs:
|
|||||||
cmake -S . -B build -G Ninja \
|
cmake -S . -B build -G Ninja \
|
||||||
-DBUILD_TESTS=ON \
|
-DBUILD_TESTS=ON \
|
||||||
-DBUILD_QT6=ON \
|
-DBUILD_QT6=ON \
|
||||||
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
@@ -125,12 +162,16 @@ jobs:
|
|||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
- name: Build
|
- name: Build
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }}
|
run: |
|
||||||
|
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }}
|
||||||
|
ccache -s
|
||||||
|
|
||||||
- name: Build (Windows)
|
- name: Build (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }}
|
run: |
|
||||||
|
cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }}
|
||||||
|
ccache -s
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# Clone and build OpenFX-Misc plugins (used by OFX integration tests)
|
# Clone and build OpenFX-Misc plugins (used by OFX integration tests)
|
||||||
@@ -142,7 +183,7 @@ jobs:
|
|||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
run: |
|
run: |
|
||||||
cd openfx-misc
|
cd openfx-misc
|
||||||
make -j16
|
make -j"$(nproc)"
|
||||||
sudo make install
|
sudo make install
|
||||||
PLUGIN_FILE=$(find /usr/OFX/Plugins /usr/local/OFX/Plugins . -name "*.ofx.bundle" -print -quit 2>/dev/null | head -1)
|
PLUGIN_FILE=$(find /usr/OFX/Plugins /usr/local/OFX/Plugins . -name "*.ofx.bundle" -print -quit 2>/dev/null | head -1)
|
||||||
if [ -n "$PLUGIN_FILE" ]; then
|
if [ -n "$PLUGIN_FILE" ]; then
|
||||||
@@ -228,47 +269,4 @@ jobs:
|
|||||||
- name: Viewer Smoke Tests (Windows)
|
- name: Viewer Smoke Tests (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: ./build/tests/gtest/olive-gtest --gtest_filter="ViewerSmoke*"
|
run: ./build/tests/gtest/olive-gtest --gtest_filter="ViewerSmoke*"
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# Experimental dynamic render backend (Linux only)
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
build-test-dynamic-backend:
|
|
||||||
runs-on: warp-ubuntu-latest-x64-16x
|
|
||||||
env:
|
|
||||||
CMAKE_BUILD_TYPE: Release
|
|
||||||
QT_QPA_PLATFORM: offscreen
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y \
|
|
||||||
ninja-build pkg-config nasm \
|
|
||||||
qt6-base-dev qt6-base-dev-tools qt6-base-private-dev qt6-tools-dev qt6-tools-dev-tools \
|
|
||||||
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev \
|
|
||||||
libopencolorio-dev libopenimageio-dev libopenexr-dev libexpat1-dev \
|
|
||||||
portaudio19-dev libgl1-mesa-dev libxkbcommon-dev
|
|
||||||
|
|
||||||
- name: Configure
|
|
||||||
run: |
|
|
||||||
cmake -S . -B build -G Ninja \
|
|
||||||
-DBUILD_TESTS=ON \
|
|
||||||
-DBUILD_QT6=ON \
|
|
||||||
-DOAK_ENABLE_DYNAMIC_RENDER_BACKEND=ON \
|
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=ON \
|
|
||||||
-DOCIO_LOCATION=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: ctest --test-dir build --output-on-failure -C ${{ env.CMAKE_BUILD_TYPE }}
|
|
||||||
|
|
||||||
- name: Dynamic Render Backend Smoke Tests
|
|
||||||
run: ./build/tests/gtest/olive-gtest --gtest_filter="DynamicRenderBackend*"
|
|
||||||
Reference in New Issue
Block a user