Main #1236
This file contains hidden or 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: Main | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 8,20 * * *" | |
| jobs: | |
| 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_nightly_next_enabled: false | |
| linux_nightly_main_enabled: false | |
| construct-integration-tests-matrix: | |
| name: Construct integration matrix | |
| runs-on: ubuntu-latest | |
| outputs: | |
| integration-tests-matrix: '${{ steps.generate-matrix.outputs.integration-tests-matrix }}' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - id: generate-matrix | |
| run: echo "integration-tests-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT" | |
| env: | |
| MATRIX_LINUX_COMMAND: swift package --disable-sandbox multi-node test | |
| MATRIX_LINUX_5_9_ENABLED: false | |
| MATRIX_LINUX_5_10_ENABLED: false | |
| MATRIX_LINUX_NIGHTLY_NEXT_ENABLED: false | |
| MATRIX_LINUX_NIGHTLY_MAIN_ENABLED: false | |
| integration-tests: | |
| name: Integration tests | |
| needs: construct-integration-tests-matrix | |
| uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main | |
| with: | |
| name: "Integration tests" | |
| matrix_string: '${{ needs.construct-integration-tests-matrix.outputs.integration-tests-matrix }}' | |
| construct-dining-philosophers-matrix: | |
| name: Construct dining philosophers matrix | |
| runs-on: ubuntu-latest | |
| outputs: | |
| dining-philosophers-matrix: '${{ steps.generate-matrix.outputs.dining-philosophers-matrix }}' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - id: generate-matrix | |
| run: echo "dining-philosophers-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT" | |
| env: | |
| MATRIX_LINUX_SETUP_COMMAND: apt-get update -y && apt-get install -yq jq && git config --global --add safe.directory /swift-openapi-runtime | |
| MATRIX_LINUX_COMMAND: swift run --package-path Samples SampleDiningPhilosophers | |
| MATRIX_LINUX_5_9_ENABLED: false | |
| MATRIX_LINUX_5_10_ENABLED: false | |
| MATRIX_LINUX_NIGHTLY_NEXT_ENABLED: false | |
| MATRIX_LINUX_NIGHTLY_MAIN_ENABLED: false | |
| dining-philosophers: | |
| name: Sample dining philosophers | |
| needs: construct-dining-philosophers-matrix | |
| uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main | |
| with: | |
| name: "Sample dining philosophers" | |
| matrix_string: '${{ needs.construct-dining-philosophers-matrix.outputs.dining-philosophers-matrix }}' | |
| macos-tests: | |
| name: macOS tests | |
| uses: apple/swift-nio/.github/workflows/macos_tests.yml@main | |
| with: | |
| runner_pool: nightly | |
| build_scheme: swift-distributed-actors-Package | |
| swift_test_enabled: false # tests often stop and never return | |
| # Removed for now as static sdk builds are not working | |
| # https://github.com/apple/swift-distributed-actors/issues/1229 | |
| # static-sdk: | |
| # name: Static SDK | |
| # uses: apple/swift-nio/.github/workflows/static_sdk.yml@main |