aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2024-04-04 12:53:52 -0700
committerDichenZhang1 <140119224+DichenZhang1@users.noreply.github.com>2024-04-05 01:58:52 -0700
commitbd8f3c8e260ffb1e85f3ebf09124de0cde97692b (patch)
tree9e434909def539fe917c4ddbe058525c20538e01
parent9633b315e248675be689ef80276b91cc6a0b4029 (diff)
downloadlibultrahdr-bd8f3c8e260ffb1e85f3ebf09124de0cde97692b.tar.gz
Add more targets to cmake.yml
Update Cmake.yml to test few more combinations by enable dependency builds.
-rw-r--r--.github/workflows/cmake.yml42
1 files changed, 41 insertions, 1 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 8e6cedf..19035a0 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -19,11 +19,32 @@ jobs:
build-system: cmake
cmake-opts: '-DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_FUZZERS=0'
+ - name: ubuntu-latest-gcc-cmake-deps
+ os: ubuntu-latest
+ cc: gcc
+ cxx: g++
+ build-system: cmake
+ cmake-opts: '-DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_FUZZERS=0 -DUHDR_BUILD_DEPS=1'
+
- name: ubuntu-latest-clang-cmake
os: ubuntu-latest
cc: clang
cxx: clang++
build-system: cmake
+ cmake-opts: '-DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_FUZZERS=0'
+
+ - name: ubuntu-latest-clang-cmake-deps
+ os: ubuntu-latest
+ cc: clang
+ cxx: clang++
+ build-system: cmake
+ cmake-opts: '-DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_DEPS=1'
+
+ - name: ubuntu-latest-clang-cmake-fuzzers
+ os: ubuntu-latest
+ cc: clang
+ cxx: clang++
+ build-system: cmake
cmake-opts: '-DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_FUZZERS=1'
- name: macos-latest-clang-cmake
@@ -33,6 +54,13 @@ jobs:
build-system: cmake
cmake-opts: '-DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_FUZZERS=0'
+ - name: macos-latest-clang-cmake-deps
+ os: macos-latest
+ cc: clang
+ cxx: clang++
+ build-system: cmake
+ cmake-opts: '-DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_DEPS=1'
+
- name: windows-latest-vs-cmake
os: windows-latest
cc: clang
@@ -43,7 +71,19 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
+
+ - name: Install MacOS dependencies
+ if: startsWith(matrix.os,'macos')
+ run: |
+ brew update
+ brew install pkg-config jpeg-turbo
+
+ - name: Install Linux dependencies
+ if: startsWith(matrix.os,'ubuntu')
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libjpeg-dev
- name: Configure CMake
env: