pull_request.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. name: PR
  2. on:
  3. pull_request:
  4. branches: [main]
  5. types: [opened, reopened, synchronize]
  6. jobs:
  7. soundness:
  8. name: Soundness
  9. uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
  10. with:
  11. license_header_check_project_name: "gRPC"
  12. grpc-soundness:
  13. name: Soundness
  14. uses: ./.github/workflows/soundness.yml
  15. unit-tests:
  16. name: Unit tests
  17. uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
  18. with:
  19. linux_5_9_enabled: false
  20. linux_5_10_enabled: false
  21. linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-availability"
  22. linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-availability"
  23. linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-availability"
  24. linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-availability"
  25. construct-examples-matrix:
  26. name: Construct Examples matrix
  27. runs-on: ubuntu-latest
  28. outputs:
  29. examples-matrix: '${{ steps.generate-matrix.outputs.examples-matrix }}'
  30. steps:
  31. - name: Checkout repository
  32. uses: actions/checkout@v4
  33. with:
  34. persist-credentials: false
  35. - id: generate-matrix
  36. run: echo "examples-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT"
  37. env:
  38. MATRIX_LINUX_5_9_ENABLED: false
  39. MATRIX_LINUX_5_10_ENABLED: false
  40. MATRIX_LINUX_COMMAND: "./dev/build-examples.sh"
  41. MATRIX_LINUX_SETUP_COMMAND: "apt update && apt install -y protobuf-compiler"
  42. examples-matrix:
  43. name: Examples
  44. needs: construct-examples-matrix
  45. uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
  46. with:
  47. name: "Examples"
  48. matrix_string: '${{ needs.construct-examples-matrix.outputs.examples-matrix }}'
  49. benchmarks:
  50. name: Benchmarks
  51. uses: apple/swift-nio/.github/workflows/benchmarks.yml@main
  52. with:
  53. benchmark_package_path: "IntegrationTests/Benchmarks"
  54. linux_5_9_enabled: false
  55. linux_5_10_enabled: false
  56. cxx-interop:
  57. name: Cxx interop
  58. uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
  59. with:
  60. linux_5_9_enabled: false
  61. linux_5_10_enabled: false
  62. static-sdk:
  63. name: Static SDK
  64. uses: apple/swift-nio/.github/workflows/static_sdk.yml@main