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