Mercurial > minori
comparison .builds/windows.yml @ 249:6b2441c776dd
*: merge
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 24 Jan 2024 20:18:59 -0500 |
parents | f475e168fac8 |
children |
comparison
equal
deleted
inserted
replaced
248:cf47a8f687c0 | 249:6b2441c776dd |
---|---|
1 image: debian/bookworm | 1 image: debian/bookworm |
2 packages: | 2 packages: |
3 - wget | 3 - automake |
4 - tar | 4 - autoconf |
5 - zstd | 5 - libtool |
6 - gpg | |
7 - clang | |
8 - lld | |
9 - xz-utils | |
10 - wine | |
11 - cmake | |
12 - ncurses-bin | |
13 - qtbase5-dev | |
14 - qttools5-dev | |
15 sources: | 6 sources: |
16 - https://hg.sr.ht/~mrpapersonic/minori | 7 - https://hg.sr.ht/~mrpapersonic/minori |
17 environment: | |
18 BUILD_SUBMITTER: hg.sr.ht | |
19 tasks: | 8 tasks: |
20 - build-win64: | | 9 - install-docker: | |
21 export WINEARCH=win64 | 10 # Add Docker's official GPG key: |
22 git clone https://github.com/holyblackcat/quasi-msys2 quasi-msys2-win64 | 11 sudo apt update |
23 cd quasi-msys2-win64 | 12 sudo apt install ca-certificates curl gnupg |
24 echo MINGW64 >msystem.txt | 13 sudo install -m 0755 -d /etc/apt/keyrings |
25 make install _gcc _qt5-base _qt5-tools _curl _autotools | 14 curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg |
26 cd ../minori | 15 sudo chmod a+r /etc/apt/keyrings/docker.gpg |
27 sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status' | 16 |
28 bash -c 'source ../../quasi-msys2-win64/env/all.src && autoreconf -i && cd dep/animia && autoreconf -i && cd ../anitomy && autoreconf -i && cd ../pugixml && autoreconf -i && ../.. && mkdir build64 && cd build64 && ../configure && make' | 17 # Add the repository to Apt sources: |
29 - get-wine32: | | 18 echo \ |
30 sudo dpkg --add-architecture i386 | 19 "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ |
31 sudo apt-get update | 20 $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ |
32 sudo apt-get -y install wine32:i386 | 21 sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
33 - build-win32: | | 22 sudo apt update |
34 export WINEARCH=win32 | 23 |
35 export WINEPREFIX="$HOME/.wine32" | 24 sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
36 git clone https://github.com/holyblackcat/quasi-msys2 quasi-msys2-win32 | 25 - build: | |
37 cd quasi-msys2-win32 | 26 export ARCH="x86_64" |
38 echo MINGW32 >msystem.txt | 27 cd minori |
39 make install _gcc _qt5-base _qt5-tools _curl | 28 autoreconf -i |
40 cd ../minori | 29 |
41 mkdir build32 | 30 mkdir build |
42 cd build32 | 31 sudo docker run -e MSYSTEM=MINGW64 -w "$PWD/build" amitie10g/msys2 "/bin/bash -c 'pacman -S --noconfirm mingw-w64-$ARCH-qt5-base mingw-w64-$ARCH-qt5-translations mingw-w64-$ARCH-qt5-tools mingw-w64-$ARCH-toolchain mingw-w64-$ARCH-curl mingw-w64-$ARCH-make; ../configure; make; ../scripts/win32/deploy_build.sh'" |
43 sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status' | 32 |
44 bash -c 'source ../../quasi-msys2-win32/env/all.src && autoreconf -i && cd dep/animia && autoreconf -i && cd ../anitomy && autoreconf -i && cd ../pugixml && autoreconf -i && ../.. && mkdir build32 && cd build32 && ../configure && make' | |
45 triggers: | 33 triggers: |
46 - action: email | 34 - action: email |
47 condition: failure | 35 condition: failure |
48 to: Paper <mrpapersonic@gmail.com> | 36 to: Paper <mrpapersonic@gmail.com> |