Commit c5deea90 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳 Committed by Linus Jahn
Browse files

ci: Add Windows mingw x86_64 builds

parent 87447c89
...@@ -61,6 +61,17 @@ click-xenial: ...@@ -61,6 +61,17 @@ click-xenial:
- "*.click" - "*.click"
expire_in: 1 week expire_in: 1 week
windows-mxe:
stage: deploy
image: kaidan/windows-mxe
script:
- utils/build-windows-mxe.sh
- mv build/bin/kaidan.exe kaidan.exe
artifacts:
paths:
- "kaidan.exe"
expire_in: 1 week
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
BUILD_SYSTEM: cmake BUILD_SYSTEM: cmake
......
...@@ -207,10 +207,15 @@ rgb2xyz(Triplet* in_out) ...@@ -207,10 +207,15 @@ rgb2xyz(Triplet* in_out)
static double static double
y2l(double y) y2l(double y)
{ {
/* FIXME: cbrt can't be used in mingw */
#ifndef _WIN32
if(y <= epsilon) if(y <= epsilon)
return y * kappa; return y * kappa;
else else
return 116.0 * cbrt(y) - 16.0; return 116.0 * cbrt(y) - 16.0;
#else
return y * kappa;
#endif
} }
static double static double
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment