build-map-renderer.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: Build & Test Map Renderer
  2. on:
  3. push:
  4. branches: [ master, staging, stable ]
  5. merge_group:
  6. pull_request:
  7. types: [ opened, reopened, synchronize, ready_for_review ]
  8. branches: [ master, staging, stable ]
  9. jobs:
  10. build:
  11. if: github.actor != 'PJBot' && github.event.pull_request.draft == false
  12. strategy:
  13. matrix:
  14. os: [ubuntu-latest]
  15. runs-on: ${{ matrix.os }}
  16. steps:
  17. - name: Checkout Master
  18. uses: actions/checkout@v3.6.0
  19. - name: Setup Submodule
  20. run: |
  21. git submodule update --init --recursive
  22. - name: Pull engine updates
  23. uses: space-wizards/submodule-dependency@v0.1.5
  24. - name: Update Engine Submodules
  25. run: |
  26. cd RobustToolbox/
  27. git submodule update --init --recursive
  28. - name: Setup .NET Core
  29. uses: actions/setup-dotnet@v3.2.0
  30. with:
  31. dotnet-version: 9.0.x
  32. - name: Install dependencies
  33. run: dotnet restore
  34. - name: Build Project
  35. run: dotnet build Content.MapRenderer --configuration Release --no-restore /p:WarningsAsErrors=nullable /m
  36. - name: Run Map Renderer
  37. run: dotnet run --project Content.MapRenderer Dev
  38. ci-success:
  39. name: Build & Test Debug
  40. needs:
  41. - build
  42. runs-on: ubuntu-latest
  43. steps:
  44. - name: CI succeeded
  45. run: exit 0