quick-build.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Quick Build for Tests
  2. on:
  3. workflow_call:
  4. outputs:
  5. artifact-name:
  6. description: "Name of the build artifacts"
  7. value: ${{ jobs.quick-build.outputs.artifact-name }}
  8. jobs:
  9. quick-build:
  10. name: Build Debug Only
  11. runs-on: ubuntu-latest
  12. outputs:
  13. artifact-name: test-build-artifacts
  14. timeout-minutes: 5
  15. steps:
  16. - name: Checkout code
  17. uses: actions/checkout@v4
  18. - name: Setup .NET Core
  19. uses: actions/setup-dotnet@v4
  20. with:
  21. dotnet-version: 8.x
  22. dotnet-quality: 'ga'
  23. - name: Restore dependencies
  24. run: dotnet restore
  25. # Suppress CS0618 (member is obsolete) and CS0612 (member is obsolete without message)
  26. - name: Build Debug
  27. run: dotnet build --configuration Debug --no-restore -property:NoWarn=0618%3B0612
  28. - name: Upload build artifacts
  29. uses: actions/upload-artifact@v4
  30. with:
  31. name: test-build-artifacts
  32. path: |
  33. **/bin/Debug/**
  34. **/obj/Debug/**
  35. retention-days: 1