build.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Build
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. workflow_dispatch:
  7. jobs:
  8. release:
  9. name: Release x64
  10. # The image carries Visual Studio 2026, so the project's own v145 toolset and its
  11. # 10.0.26100.0 SDK are both present. No toolset override.
  12. runs-on: windows-2025-vs2026
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v4
  16. - name: Add MSBuild to PATH
  17. uses: microsoft/setup-msbuild@v2
  18. with:
  19. msbuild-architecture: x64
  20. # The x86-hosted compiler runs out of heap on the large static tables. Force the x64 host.
  21. - name: Build
  22. run: >
  23. msbuild Sunrise.sln /m
  24. /p:Configuration=Release
  25. /p:Platform=x64
  26. /p:PreferredToolArchitecture=x64
  27. /verbosity:minimal
  28. - name: Upload artifact
  29. uses: actions/upload-artifact@v4
  30. with:
  31. name: Sunrise-Release-x64
  32. path: |
  33. build/x64/Release/steam_api64.dll
  34. build/x64/Release/steam_api64.pdb
  35. if-no-files-found: error