GHA: Fix Windows build (install texinfo)
[heimdal.git] / .github / workflows / windows.yml
blob222e7049b3cc1be2efdfafe3e187570055aad49b
1 name: Windows Build
3 on:
4     push:
5       branches:
6          - 'master'
7          - 'heimdal-7-1-branch'
8       paths:
9          - '!docs/**'
10          - '!**.md'
11          - '!**.[1-9]'
12          - '**.[chly]'
13          - '**.hin'
14          - '**.in'
15          - '**.pl'
16          - '**.py'
17          - '**.asn1'
18          - '**.opt'
19          - '**.w32'
20          - '**/NTMakefile*'
21          - '**/COPYING'
22          - '**/INSTALL'
23          - '**/README*'
24          - '.github/workflows/windows.yml'
25          - '!appveyor.yml'
26          - '!.travis.yml'
28     pull_request:
29       paths:
30          - '!docs/**'
31          - '!**.md'
32          - '!**.[1-9]'
33          - '**.[chly]'
34          - '**.hin'
35          - '**.in'
36          - '**.pl'
37          - '**.py'
38          - '**.asn1'
39          - '**.opt'
40          - '**.w32'
41          - '**/NTMakefile'
42          - '**/COPYING'
43          - '**/INSTALL'
44          - '**/README*'
45          - '.github/workflows/windows.yml'
46          - '!appveyor.yml'
47          - '!.travis.yml'
49 jobs:
50     windows:
51         runs-on: windows-latest
52         env:
53             APPVER: '10.0'
54             CODESIGN_PKT: 0000000000000000
55             INSTALL_DIR: C:\heimdal
56             WINSDKVER: '10.0.22000.0'
57             WIXDIR: 'c:\Program Files (x86)\Windows Installer XML v3.5'
58         steps:
59             - name: Clone repository
60               uses: actions/checkout@v1
61             - name: Find MSVC and run vcvarsall.bat
62               uses: ilammy/msvc-dev-cmd@v1
63               with:
64                 arch: amd64
65             - name: Build and Test
66               shell: cmd
67               run: |
68                 set PATH=%PATH%;C:\msys64\usr\bin;C:\Program Files (x86)\HTML Help Workshop;C:\program files (x86)\windows installer xml v3.5\bin;C:\cygwin\bin
69                 set CODESIGN_PKT=0000000000000000
70                 set dbg__type=Debug
71                 mkdir %INSTALL_DIR%
72                 pacman --noconfirm -S zstd
73                 pacman --noconfirm -S autoconf
74                 pacman --noconfirm -S automake
75                 pacman --noconfirm -S flex
76                 pacman --noconfirm -S bison
77                 pacman --noconfirm -S perl
78                 pacman --noconfirm -S perl-JSON
79                 pacman --noconfirm -S texinfo
80                 set PATH=%PATH%;%wix%bin
81                 title Heimdal Build %CPU% %dbg__type%
82                 set "PATH=%PATH%;C:\Perl64\bin;C:\tools\cygwin\bin;C:\Program Files (x86)\HTML Help Workshop"
83                 set "PATH=%PATH%;C:/msys64/usr/bin"
84                 set "PATH=%PATH%;C:\program files (x86)\windows installer xml v3.5\bin;C:\cygwin\bin"
85                 set "PATH=%PATH%;C:\Python310-x64"
86                 echo PATH=%PATH%
87                 nmake /f NTMakefile APPVEYOR=1 MAKEINFO=makeinfo NO_INSTALLERS=1
88                 nmake /f NTMakefile APPVEYOR=1 MAKEINFO=makeinfo NO_INSTALLERS=1 test
89             - name: Upload Artifacts
90               uses: actions/upload-artifact@v2
91               with:
92                 name: Objects
93                 path: 'D:/a/heimdal/heimdal/out/'