zrythm builds (meta-repo used to build installers)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.6 KiB

#
# Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
trigger:
- master
pool:
vmImage: 'windows-latest'
steps:
- script: cinst msys2 --params "/InstallDir=C:/msys64" --no-progress
displayName: install msys2
- script: C:\msys64\usr\bin\bash --login -c "pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk3 mingw-w64-x86_64-meson mingw-w64-x86_64-libsamplerate mingw-w64-x86_64-fftw mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-libyaml mingw-w64-x86_64-libsndfile mingw-w64-x86_64-rubberband mingw-w64-x86_64-dlfcn mingw-w64-x86_64-SDL2 mingw-w64-x86_64-chromaprint guile libguile-devel mingw-w64-x86_64-graphviz git mingw-w64-x86_64-cantarell-fonts mingw-w64-x86_64-gtksourceview4 mingw-w64-x86_64-gcc mingw-w64-x86_64-make zip"
displayName: install mingw deps
- script: |
C:\msys64\usr\bin\bash --login -c "cd && git clone https://git.sr.ht/~alextee/zrythm && git clone https://git.sr.ht/~alextee/zrythm-builds && git clone https://git.sr.ht/~alextee/zrythm-installer && git clone https://github.com/KDE/breeze-icons"
displayName: 'Fetch repos'
- script: |
C:\msys64\usr\bin\bash --login -c "wget https://www.zrythm.org/downloads/inno-setup-bin.zip && unzip inno-setup-bin.zip -d ~/"
displayName: 'Install inno'
- script: |
echo REMOTE_HOME=%REMOTE_HOME% >> C:\msys64\mingw64\.env
echo REMOTE_IP=%REMOTE_IP% >> C:\msys64\mingw64\.env
echo SSH_KEY=%SSH_KEY% >> C:\msys64\mingw64\.env
C:\msys64\usr\bin\bash --login -c "cd && source /mingw64/.env && echo \"$SSH_KEY\" > tmp_rsa && openssl base64 -d -A < tmp_rsa > id_rsa && grep -q \"BEGIN RSA PRIVATE KEY\" id_rsa && chmod 600 id_rsa && zrythm-builds/scripts/create-manuals-zip.sh && zrythm-builds/scripts/make-pkg.sh windows10-msys && zrythm-builds/scripts/push-pkg.sh windows10-msys"
displayName: 'Make installer'
env:
REMOTE_HOME: $(REMOTE_HOME)
REMOTE_IP: $(REMOTE_IP)
SSH_KEY: $(SSH_KEY)