Skip to content

88 memory leak in imagechannel #152

88 memory leak in imagechannel

88 memory leak in imagechannel #152

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- dev
pull_request:
branches:
- master
release:
types:
- published
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu GCC
os: ubuntu-24.04
compiler: gcc-13
compilercxx: g++-13
- name: Ubuntu Clang
os: ubuntu-24.04
compiler: clang
compilercxx: clang++
- name: Windows MSVC
os: windows-latest
compiler: msvc
compilercxx: msvc
- name: Windows Clang
os: windows-latest
compiler: "C:/Program Files/LLVM/bin/clang.exe"
compilercxx: "C:/Program Files/LLVM/bin/clang.exe"
- name: MacOS ARM GCC
os: macos-latest
compiler: gcc-13
compilercxx: g++-13
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
# We need to specify Xcode15.3 here as the default for macos-14 runners is 15.01 which has a bug
# causing linking to fail.
- name: Setup Xcode 15.3
if: matrix.os == 'macos-latest'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.3'
- name: Configure CMake ${{ matrix.os }}-${{ matrix.compilercxx }}
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER="${{ matrix.compiler }}" -DCMAKE_CXX_COMPILER="${{ matrix.compilercxx }}" -DPSAPI_BUILD_DOCS=OFF -DPSAPI_BUILD_BENCHMARKS=OFF -DPSAPI_BUILD_EXAMPLES=OFF -DPSAPI_BUILD_PYTHON=OFF
- name: Build ${{ matrix.os }}-${{ matrix.compilercxx }}
# Build your program with the given configuration
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.compilercxx }}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# Call our python script to generate the relevant release artifacts after which we upload
# them for each platform
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Generate artifacts for ${{ matrix.os }}-${{ matrix.compilercxx }}
run: python scripts/generate_release.py --build-dir ${{github.workspace}}/build
- name: Upload Release Artifacts
uses: actions/upload-artifact@v3
with:
name: PhotoshopAPI-${{ matrix.os }}-${{ matrix.compilercxx }}
path: ${{github.workspace}}/release