annotate .builds/windows.yml @ 249:6b2441c776dd

*: merge
author Paper <mrpapersonic@gmail.com>
date Wed, 24 Jan 2024 20:18:59 -0500
parents f475e168fac8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
246
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
1 image: debian/bookworm
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
2 packages:
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
3 - automake
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
4 - autoconf
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
5 - libtool
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
6 sources:
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
7 - https://hg.sr.ht/~mrpapersonic/minori
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
8 tasks:
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
9 - install-docker: |
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
10 # Add Docker's official GPG key:
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
11 sudo apt update
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
12 sudo apt install ca-certificates curl gnupg
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
13 sudo install -m 0755 -d /etc/apt/keyrings
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
14 curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
15 sudo chmod a+r /etc/apt/keyrings/docker.gpg
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
16
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
17 # Add the repository to Apt sources:
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
18 echo \
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
19 "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
20 $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
21 sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
22 sudo apt update
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
23
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
24 sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
25 - build: |
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
26 export ARCH="x86_64"
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
27 cd minori
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
28 autoreconf -i
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
29
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
30 mkdir build
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
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'"
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
32
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
33 triggers:
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
34 - action: email
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
35 condition: failure
f475e168fac8 CI: add experimental windows build
Paper <paper@paper.us.eu.org>
parents:
diff changeset
36 to: Paper <mrpapersonic@gmail.com>