2020-04-13 16:14:42 +02:00
|
|
|
name: Windows Build
|
2023-11-03 20:13:36 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-13 16:14:42 +02:00
|
|
|
|
|
|
|
jobs:
|
2021-12-01 20:07:34 +01:00
|
|
|
windows_build:
|
2020-04-13 16:14:42 +02:00
|
|
|
runs-on: windows-2019
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [x64, win32]
|
|
|
|
arch: [x64, x86]
|
|
|
|
exclude:
|
|
|
|
- platform: x64
|
|
|
|
arch: x86
|
|
|
|
- platform: win32
|
|
|
|
arch: x64
|
|
|
|
fail-fast: false
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
New-Item -Name "deps" -ItemType "Directory"
|
|
|
|
|
|
|
|
Invoke-WebRequest http://files.jrsoftware.org/is/5/innosetup-5.5.9-unicode.exe -OutFile deps\innosetup-unicode.exe
|
|
|
|
& deps\innosetup-unicode.exe /VERYSILENT | Out-Null
|
|
|
|
|
2024-02-10 01:29:15 +01:00
|
|
|
Invoke-WebRequest https://github.com/hexchat/gvsbuild/releases/download/hexchat-2.16.2/idpsetup-1.5.1.exe -OutFile deps\idpsetup.exe
|
2020-04-13 16:14:42 +02:00
|
|
|
& deps\idpsetup.exe /VERYSILENT
|
|
|
|
|
2024-02-10 01:29:15 +01:00
|
|
|
Invoke-WebRequest https://github.com/hexchat/gvsbuild/releases/download/hexchat-2.16.2/gtk-${{ matrix.platform }}-2018-08-29-openssl1.1.7z -OutFile deps\gtk-${{ matrix.arch }}.7z
|
2020-04-13 16:14:42 +02:00
|
|
|
& 7z.exe x deps\gtk-${{ matrix.arch }}.7z -oC:\gtk-build\gtk
|
|
|
|
|
2024-02-10 01:29:15 +01:00
|
|
|
Invoke-WebRequest https://github.com/hexchat/gvsbuild/releases/download/hexchat-2.16.2/gendef-20111031.7z-OutFile deps\gendef.7z
|
2020-04-13 16:14:42 +02:00
|
|
|
& 7z.exe x deps\gendef.7z -oC:\gtk-build
|
|
|
|
|
2024-02-10 01:29:15 +01:00
|
|
|
Invoke-WebRequest https://github.com/hexchat/gvsbuild/releases/download/hexchat-2.16.2/WinSparkle-20151011.7z -OutFile deps\WinSparkle.7z
|
2020-04-13 16:14:42 +02:00
|
|
|
& 7z.exe x deps\WinSparkle.7z -oC:\gtk-build\WinSparkle
|
|
|
|
|
2024-02-10 01:29:15 +01:00
|
|
|
Invoke-WebRequest https://github.com/hexchat/gvsbuild/releases/download/hexchat-2.16.2/perl-5.20.0-${{ matrix.arch }}.7z -OutFile deps\perl-${{ matrix.arch }}.7z
|
2020-04-13 16:14:42 +02:00
|
|
|
& 7z.exe x deps\perl-${{ matrix.arch }}.7z -oC:\gtk-build\perl-5.20\${{ matrix.platform }}
|
|
|
|
|
2020-04-11 23:01:46 +02:00
|
|
|
New-Item -Path "c:\gtk-build" -Name "python-3.8" -ItemType "Directory"
|
|
|
|
New-Item -Path "c:\gtk-build\python-3.8" -Name "${{ matrix.platform }}" -ItemType "SymbolicLink" -Value "C:/hostedtoolcache/windows/Python/3.8.10/${{ matrix.arch }}"
|
2020-04-13 16:14:42 +02:00
|
|
|
|
2020-04-11 23:01:46 +02:00
|
|
|
C:/hostedtoolcache/windows/Python/3.8.10/${{ matrix.arch }}/python.exe -m pip install cffi
|
2020-04-13 16:14:42 +02:00
|
|
|
shell: powershell
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat"
|
|
|
|
msbuild win32\hexchat.sln /m /verbosity:minimal /p:Configuration=Release /p:Platform=${{ matrix.platform }}
|
|
|
|
shell: cmd
|
|
|
|
|
|
|
|
- name: Preparing Artifacts
|
|
|
|
run: |
|
|
|
|
move ..\hexchat-build\${{ matrix.platform }}\HexChat*.exe .\
|
|
|
|
move ..\hexchat-build .\
|
|
|
|
shell: cmd
|
|
|
|
|
2021-05-28 02:04:35 +02:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-04-13 16:14:42 +02:00
|
|
|
with:
|
2021-05-28 02:04:35 +02:00
|
|
|
name: Installer ${{ matrix.arch }}
|
2020-04-13 16:14:42 +02:00
|
|
|
path: HexChat*.exe
|
|
|
|
|
2021-05-28 02:04:35 +02:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-04-13 16:14:42 +02:00
|
|
|
with:
|
2021-05-28 02:04:35 +02:00
|
|
|
name: Build Files ${{ matrix.arch }}
|
2020-04-13 16:14:42 +02:00
|
|
|
path: hexchat-build
|