|
9 | 9 | name: Soundness |
10 | 10 | uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main |
11 | 11 | with: |
| 12 | + # https://github.com/apple/swift-distributed-actors/issues/1225 |
12 | 13 | api_breakage_check_enabled: false |
13 | 14 | license_header_check_project_name: "Swift Distributed Actors" |
14 | 15 |
|
15 | 16 | unit-tests: |
16 | 17 | name: Unit tests |
17 | | - uses: apple/swift-nio/.github/workflows/unit_tests.yml@main |
| 18 | + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main |
18 | 19 | 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-sendable" |
22 | | - linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
23 | | - linux_nightly_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
24 | | - linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
25 | | - |
26 | | - construct-integration-tests-matrix: |
27 | | - name: Construct integration matrix |
28 | | - runs-on: ubuntu-latest |
29 | | - outputs: |
30 | | - integration-tests-matrix: '${{ steps.generate-matrix.outputs.integration-tests-matrix }}' |
31 | | - steps: |
32 | | - - name: Checkout repository |
33 | | - uses: actions/checkout@v4 |
34 | | - with: |
35 | | - persist-credentials: false |
36 | | - - id: generate-matrix |
37 | | - run: echo "integration-tests-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT" |
38 | | - env: |
39 | | - MATRIX_LINUX_COMMAND: swift package --disable-sandbox multi-node test |
40 | | - MATRIX_LINUX_5_9_ENABLED: false |
41 | | - MATRIX_LINUX_5_10_ENABLED: false |
| 20 | + linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' |
| 21 | + enable_windows_checks: false |
| 22 | + enable_macos_checks: true |
| 23 | + swift_flags: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
| 24 | + swift_nightly_flags: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
42 | 25 |
|
43 | 26 | integration-tests: |
44 | 27 | name: Integration tests |
45 | | - needs: construct-integration-tests-matrix |
46 | | - uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main |
| 28 | + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main |
47 | 29 | with: |
48 | | - name: "Integration tests" |
49 | | - matrix_string: '${{ needs.construct-integration-tests-matrix.outputs.integration-tests-matrix }}' |
50 | | - |
51 | | - construct-dining-philosophers-matrix: |
52 | | - name: Construct dining philosophers matrix |
53 | | - runs-on: ubuntu-latest |
54 | | - outputs: |
55 | | - dining-philosophers-matrix: '${{ steps.generate-matrix.outputs.dining-philosophers-matrix }}' |
56 | | - steps: |
57 | | - - name: Checkout repository |
58 | | - uses: actions/checkout@v4 |
59 | | - with: |
60 | | - persist-credentials: false |
61 | | - - id: generate-matrix |
62 | | - run: echo "dining-philosophers-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT" |
63 | | - env: |
64 | | - MATRIX_LINUX_SETUP_COMMAND: apt-get update -y && apt-get install -yq jq && git config --global --add safe.directory /swift-openapi-runtime |
65 | | - MATRIX_LINUX_COMMAND: swift run --package-path Samples SampleDiningPhilosophers |
66 | | - MATRIX_LINUX_5_9_ENABLED: false |
67 | | - MATRIX_LINUX_5_10_ENABLED: false |
| 30 | + linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' |
| 31 | + enable_windows_checks: false |
| 32 | + linux_build_command: "swift package --disable-sandbox multi-node test" |
| 33 | + swift_flags: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
| 34 | + swift_nightly_flags: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
68 | 35 |
|
69 | 36 | dining-philosophers: |
70 | 37 | name: Sample dining philosophers |
71 | | - needs: construct-dining-philosophers-matrix |
72 | | - uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main |
73 | | - with: |
74 | | - name: "Sample dining philosophers" |
75 | | - matrix_string: '${{ needs.construct-dining-philosophers-matrix.outputs.dining-philosophers-matrix }}' |
76 | | - |
77 | | - cxx-interop: |
78 | | - name: Cxx interop |
79 | | - uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main |
80 | | - with: |
81 | | - linux_5_9_enabled: false |
82 | | - linux_5_10_enabled: false |
83 | | - |
84 | | - macos-tests: |
85 | | - name: macOS tests |
86 | | - uses: apple/swift-nio/.github/workflows/macos_tests.yml@main |
| 38 | + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main |
87 | 39 | with: |
88 | | - runner_pool: general |
89 | | - build_scheme: swift-distributed-actors-Package |
| 40 | + linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' |
| 41 | + enable_windows_checks: false |
| 42 | + linux_pre_build_command: "apt-get update -y && apt-get install -yq jq" |
| 43 | + linux_build_command: "swift run --package-path Samples SampleDiningPhilosophers" |
| 44 | + swift_flags: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
| 45 | + swift_nightly_flags: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" |
0 commit comments