inno_setup.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Build Windows Installer
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. name: Build the Inno Setup Installer
  10. runs-on: windows-latest
  11. steps:
  12. - uses: actions/checkout@v4
  13. - uses: lukka/get-cmake@latest
  14. - uses: ilammy/msvc-dev-cmd@v1
  15. - name: Cache DX SDK
  16. id: dxcache
  17. uses: actions/cache@v4
  18. with:
  19. path: '${{ github.workspace }}/DX_SDK'
  20. key: ${{ runner.os }}-DX_SDK
  21. restore-keys: |
  22. ${{ runner.os }}-DX_SDK
  23. - name: Download DXSetup
  24. run: |
  25. curl -s -o DXSDK_Jun10.exe --location https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe
  26. cmd.exe /c start /wait .\DXSDK_Jun10.exe /U /O /F /S /P "${{ github.workspace }}\DX_SDK"
  27. - name: Download DLL using curl
  28. run: |
  29. curl -L -o ${{ github.workspace }} https://aka.ms/vs/17/release/VC_redist.x64.exe
  30. - name: Set Windows specific CMake arguments
  31. id: windows_extra_cmake_args
  32. run: echo "::set-output name=args::-DASSIMP_BUILD_ASSIMP_TOOLS=1 -DASSIMP_BUILD_ASSIMP_VIEW=1 -DASSIMP_BUILD_ZLIB=1"
  33. - name: configure and build
  34. uses: lukka/run-cmake@v3
  35. env:
  36. DXSDK_DIR: '${{ github.workspace }}/DX_SDK'
  37. with:
  38. cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
  39. cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
  40. cmakeAppendedArgs: '-GNinja -DCMAKE_BUILD_TYPE=Release ${{ steps.windows_extra_cmake_args.outputs.args }} ${{ steps.hunter_extra_cmake_args.outputs.args }}'
  41. buildWithCMakeArgs: '--parallel 24 -v'
  42. buildDirectory: '${{ github.workspace }}/build/'
  43. - name: Compile .ISS to .EXE Installer
  44. uses: Minionguyjpro/[email protected]
  45. with:
  46. path: packaging/windows-innosetup/script_x64.iss
  47. options: /O+