build.yml 934 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Build job
  2. on:
  3. push:
  4. branches: [ master ]
  5. paths-ignore:
  6. - '.github/*'
  7. - '.github/ISSUE_TEMPLATE/**'
  8. - '*.yml'
  9. - 'README.md'
  10. pull_request:
  11. branches: [ master ]
  12. paths-ignore:
  13. - '.github/*'
  14. - '.github/ISSUE_TEMPLATE/**'
  15. - '*.yml'
  16. - 'README.md'
  17. jobs:
  18. build:
  19. name: ${{ matrix.os }} (${{ matrix.configuration }})
  20. runs-on: ${{ matrix.os }}
  21. strategy:
  22. matrix:
  23. os: [ubuntu-latest, macOS-latest, windows-latest]
  24. configuration: [Debug, Release]
  25. fail-fast: false
  26. env:
  27. POWERSHELL_TELEMETRY_OPTOUT: 1
  28. DOTNET_CLI_TELEMETRY_OPTOUT: 1
  29. steps:
  30. - uses: actions/checkout@v2
  31. - uses: actions/setup-dotnet@v1
  32. with:
  33. dotnet-version: 5.0.x
  34. - name: Build
  35. run: dotnet build -c "${{ matrix.configuration }}"
  36. - name: Test
  37. run: dotnet test -c "${{ matrix.configuration }}"