view .builds/windows.yml @ 229:adc20fa321c1

theme: force Fusion style on platforms other than Win32 or OS X I was reluctant to do this, but most of the other styles just look like pure shite regardless of whether I force a stylesheet on them or not. KDE's style is actually hilariously bad paired with my stylesheet, so I've decided to also make the stylesheet Windows-specific as well, because that's really the only platform where it makes sense in the first place.
author Paper <paper@paper.us.eu.org>
date Wed, 10 Jan 2024 21:23:57 -0500
parents 9d9e6242dd1a
children 4d461ef7d424
line wrap: on
line source

image: debian/bookworm
packages:
  - wget
  - tar
  - zstd
  - gpg
  - clang
  - lld
  - xz-utils
  - wine
  - cmake
  - ncurses-bin
  - qtbase5-dev
  - qttools5-dev
sources:
  - https://hg.sr.ht/~mrpapersonic/minori
environment:
  BUILD_SUBMITTER: hg.sr.ht
tasks:
  - build-win64: |
      export WINEARCH=win64
      git clone https://github.com/holyblackcat/quasi-msys2 quasi-msys2-win64
      cd quasi-msys2-win64
      echo MINGW64 >msystem.txt
      make install _gcc _qt5-base _qt5-tools _curl
      cd ../minori
      mkdir build64
      cd build64
      sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status'
      bash -c 'source ../../quasi-msys2-win64/env/all.src && cmake .. -G "Unix Makefiles" -DCMAKE_AUTOMOC_EXECUTABLE="$(which moc)" -DCMAKE_AUTORCC_EXECUTABLE="$(which rcc)" && make'
  - get-wine32: |
      sudo dpkg --add-architecture i386
      sudo apt-get update
      sudo apt-get -y install wine32:i386
  - build-win32: |
      export WINEARCH=win32
      export WINEPREFIX="$HOME/.wine32"
      git clone https://github.com/holyblackcat/quasi-msys2 quasi-msys2-win32
      cd quasi-msys2-win32
      echo MINGW32 >msystem.txt
      make install _gcc _qt5-base _qt5-tools _curl
      cd ../minori
      mkdir build32
      cd build32
      sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status'
      bash -c 'source ../../quasi-msys2-win32/env/all.src && cmake .. -G "Unix Makefiles" -DCMAKE_AUTOMOC_EXECUTABLE="$(which moc)" -DCMAKE_AUTORCC_EXECUTABLE="$(which rcc)" && make'
triggers:
  - action: email
    condition: failure
    to: Paper <mrpapersonic@gmail.com>