00_setup_env_win64.sh raw

   1  #!/usr/bin/env bash
   2  #
   3  # Copyright (c) 2019-present The Limenka developers
   4  # Distributed under the MIT software license, see the accompanying
   5  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
   6  
   7  export LC_ALL=C.UTF-8
   8  
   9  export CONTAINER_NAME=ci_win64
  10  export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:noble"  # Check that g++-mingw-w64-x86-64-posix (version 13.2, similar to guix) can cross-compile
  11  export CI_IMAGE_PLATFORM="linux/amd64"
  12  export HOST=x86_64-w64-mingw32
  13  export DPKG_ADD_ARCH="i386"
  14  export PACKAGES="nsis g++-mingw-w64-x86-64-posix wine-binfmt wine64 wine32 file"
  15  # Install wine, but do not run unit tests, as they surface frequent
  16  # false-positives.
  17  export RUN_UNIT_TESTS=${RUN_UNIT_TESTS:-false}
  18  export RUN_FUNCTIONAL_TESTS=false
  19  export GOAL="deploy"
  20  export LIMENKA_CONFIG="-DREDUCE_EXPORTS=ON -DBUILD_GUI_TESTS=OFF \
  21  -DCMAKE_CXX_FLAGS='-Wno-error=maybe-uninitialized -Wno-error=array-bounds'"
  22