test-packaging.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: Test Packaging
  2. on:
  3. push:
  4. branches: [ master, staging, stable ]
  5. paths:
  6. - '**.cs'
  7. - '**.csproj'
  8. - '**.sln'
  9. - '**.git**'
  10. - '**.yml'
  11. # no docs on which one of these is supposed to work, so
  12. # why not just do both
  13. - 'RobustToolbox'
  14. - 'RobustToolbox/**'
  15. merge_group:
  16. pull_request:
  17. types: [ opened, reopened, synchronize, ready_for_review ]
  18. branches: [ master, staging, stable ]
  19. paths:
  20. - '**.cs'
  21. - '**.csproj'
  22. - '**.sln'
  23. - '**.git**'
  24. - '**.yml'
  25. - 'RobustToolbox'
  26. - 'RobustToolbox/**'
  27. jobs:
  28. build:
  29. name: Test Packaging
  30. if: github.actor != 'PJBot' && github.event.pull_request.draft == false
  31. runs-on: ubuntu-latest
  32. steps:
  33. - name: Checkout Master
  34. uses: actions/checkout@v3.6.0
  35. - name: Setup Submodule
  36. run: |
  37. git submodule update --init --recursive
  38. - name: Pull engine updates
  39. uses: space-wizards/submodule-dependency@v0.1.5
  40. - name: Update Engine Submodules
  41. run: |
  42. cd RobustToolbox/
  43. git submodule update --init --recursive
  44. - name: Setup .NET Core
  45. uses: actions/setup-dotnet@v3.2.0
  46. with:
  47. dotnet-version: 9.0.x
  48. - name: Install dependencies
  49. run: dotnet restore
  50. - name: Build Packaging
  51. run: dotnet build Content.Packaging --configuration Release --no-restore /m
  52. - name: Package server
  53. run: dotnet run --project Content.Packaging server --platform win-x64 --platform linux-x64 --platform osx-x64 --platform linux-arm64
  54. - name: Package client
  55. run: dotnet run --project Content.Packaging client --no-wipe-release