Skip to content

Update jpegr.cpp Encode API-1 #619

Update jpegr.cpp Encode API-1

Update jpegr.cpp Encode API-1 #619

Workflow file for this run

name: CMake
on:
push:
pull_request:
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
matrix:
include:
- name: ubuntu-latest-gcc-cmake
os: ubuntu-latest
cc: gcc
cxx: g++
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
os: macos-latest
cc: clang
cxx: clang++
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
cxx: clang++
build-system: cmake
cmake-opts: '-G "Visual Studio 17 2022" -DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_DEPS=1 -DUHDR_BUILD_FUZZERS=0'
- name: ubuntu-latest-gcc-cmake-nogles
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_ENABLE_GLES=0'
- name: windows-latest-vs-cmake-nogles
os: windows-latest
cc: clang
cxx: clang++
build-system: cmake
cmake-opts: '-G "Visual Studio 17 2022" -DUHDR_BUILD_TESTS=1 -DUHDR_ENABLE_INSTALL=0 -DUHDR_BUILD_DEPS=1 -DUHDR_BUILD_FUZZERS=0 -DUHDR_ENABLE_GLES=0'
runs-on: ${{ matrix.os }}
steps:
- 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:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: cmake -B ${{github.workspace}}/out -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{ matrix.cmake-opts }}
- name: Build
run: cmake --build ${{github.workspace}}/out --config ${{env.BUILD_TYPE}}