Migrate CI to use swiftlang / SwiftNIO common GitHub Actions. #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, reopened, synchronize] | |
jobs: | |
soundness: | |
name: Soundness | |
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | |
with: | |
license_header_check_project_name: "gRPC" | |
grpc-soundness: | |
name: gRPC-specific Soundness | |
runs-on: ubuntu-latest | |
container: | |
image: swift:6.0-noble | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Mark the workspace as safe | |
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
- name: Install protoc | |
run: apt update && apt install -y protobuf-compiler | |
- name: Run soundness checks | |
run: | | |
./dev/soundness.sh | |
unit-tests: | |
name: Unit Tests | |
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main | |
with: | |
linux_5_9_enabled: false | |
linux_5_10_enabled: false | |
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" | |
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" | |
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" | |
integration-tests: | |
name: Integration Tests | |
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main | |
with: | |
name: "Integration Tests" | |
matrix_linux_5_9_enabled: false | |
matrix_linux_5_10_enabled: false | |
matrix_linux_command: "./dev/integration_tests.sh" | |
examples: | |
name: Examples | |
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main | |
with: | |
name: "Examples" | |
matrix_linux_5_9_enabled: false | |
matrix_linux_5_10_enabled: false | |
matrix_linux_command: "./dev/build-examples.sh" | |
benchmarks: | |
name: Benchmarks | |
uses: apple/swift-nio/.github/workflows/benchmarks.yml@main | |
with: | |
benchmark_package_path: "IntegrationTests/Benchmarks" | |
linux_5_9_enabled: false | |
linux_5_10_enabled: false | |
cxx-interop: | |
name: Cxx Interop | |
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main | |
with: | |
linux_5_9_enabled: false | |
linux_5_10_enabled: false |