build_servers_msbuild.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Build servers with MSVS
  2. # build_servers_msbuild.yml
  3. concurrency:
  4. group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
  5. cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
  6. on:
  7. push:
  8. branches:
  9. - master
  10. pull_request:
  11. paths:
  12. # Always trigger all Github Actions if an action or something CI related was changed
  13. - '.github/workflows/**'
  14. - 'tools/ci/**'
  15. # This workflow should run when a file in a source directory has been modified.
  16. - 'src/**'
  17. - '3rdparty/**'
  18. jobs:
  19. build:
  20. # Github Actions checks for '[ci skip]', '[skip ci]', '[no ci]', '[skip actions]', or '[actions skip]' but not a hyphenated version.
  21. # It's a catch-all incase a Pull Request has been opened and someone is on auto-pilot.
  22. if: "!contains(github.event.head_commit.message, 'ci-skip')"
  23. runs-on: ${{ matrix.os }}
  24. strategy:
  25. matrix:
  26. # The windows-latest label currently points to windows-2019.
  27. # Available: windows-2016, windows-2019 and windows-2022
  28. os: [windows-latest]
  29. # We run build checks for both Renewal and PRE-Renewal
  30. mode: ['PRE', 'RE']
  31. steps:
  32. - uses: actions/checkout@v2
  33. - name: Add msbuild to PATH
  34. uses: microsoft/setup-msbuild@v1.1
  35. - name: Build solution in Debug
  36. if: ${{ matrix.mode == 'PRE' }}
  37. run: msbuild rAthena.sln -t:rebuild -property:Configuration=Debug /p:DefineConstants="BUILDBOT%3BPRERE"
  38. - name: Build solution in Debug
  39. if: ${{ matrix.mode == 'RE' }}
  40. run: msbuild rAthena.sln -t:rebuild -property:Configuration=Debug /p:DefineConstants="BUILDBOT"