#!/bin/bash
set -e

architecture=$1
openmp=$2

buildMagickNET() {
    local config=Test$1
    if [ "$openmp" == "OpenMP" ]; then
        config=$config-OpenMP
    fi

    dotnet build tests/Magick.NET.Core.Tests/Magick.NET.Core.Tests.csproj -f net8.0 -c $config -p:Platform=$architecture
    dotnet build tests/Magick.NET.Tests/Magick.NET.Tests.csproj -f net8.0 -c $config -p:Platform=$architecture
}

buildMagickNET "Q8"
buildMagickNET "Q16"
buildMagickNET "Q16-HDRI"
