build_servers_msbuild.yml 1.7 KB

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