1
+ name : Pull Request
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ name :
7
+ type : string
8
+ description : " The name of the workflow used for the concurrency group."
9
+ required : true
10
+ matrix_linux_command :
11
+ type : string
12
+ description : " The command of the current Swift version linux matrix job to execute."
13
+ required : true
14
+ matrix_linux_5_8_enabled :
15
+ type : string
16
+ description : " The command of the 5.8 Swift version linux matrix job to execute."
17
+ matrix_linux_5_8_command_override :
18
+ type : string
19
+ description : " The command of the 5.8 Swift version linux matrix job to execute."
20
+ matrix_linux_5_9_enabled :
21
+ type : string
22
+ description : " The command of the 5.9 Swift version linux matrix job to execute."
23
+ matrix_linux_5_9_command_override :
24
+ type : string
25
+ description : " The command of the 5.9 Swift version linux matrix job to execute."
26
+ matrix_linux_5_10_enabled :
27
+ type : string
28
+ description : " The command of the 5.10 Swift version linux matrix job to execute."
29
+ matrix_linux_5_10_command_override :
30
+ type : string
31
+ description : " The command of the 5.10 Swift version linux matrix job to execute."
32
+ matrix_linux_nightly_next_enabled :
33
+ type : string
34
+ description : " The command of the nightly next Swift version linux matrix job to execute."
35
+ matrix_linux_nightly_next_command_override :
36
+ type : string
37
+ description : " The command of the nightly next Swift version linux matrix job to execute."
38
+ matrix_linux_nightly_main_enabled :
39
+ type : string
40
+ description : " The command of the nightly main Swift version linux matrix job to execute."
41
+ matrix_linux_nightly_main_command_override :
42
+ type : string
43
+ description : " The command of the nightly main Swift version linux matrix job to execute."
44
+
45
+ # # We are cancelling previously triggered workflow runs
46
+ concurrency :
47
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ inputs.name }}
48
+ cancel-in-progress : true
49
+
50
+ jobs :
51
+ linux :
52
+ name : ${{ matrix.swift.swift_version }}
53
+ runs-on : ubuntu-latest
54
+ strategy :
55
+ fail-fast : false
56
+ matrix :
57
+ swift :
58
+ - image : swift:5.8-jammy
59
+ swift_version : " 5.8"
60
+ - image : swift:5.9-jammy
61
+ swift_version : " 5.9"
62
+ - image : swift:5.10-jammy
63
+ swift_version : " 5.10"
64
+ - image : swiftlang/swift:nightly-6.0-jammy
65
+ swift_version : " nightly-next"
66
+ - image : swiftlang/swift:nightly-main-jammy
67
+ swift_version : " nightly-main"
68
+ container :
69
+ image : ${{ matrix.swift.image }}
70
+ steps :
71
+ - name : Checkout repository
72
+ uses : actions/checkout@v4
73
+ - name : Run matrix job
74
+ env :
75
+ SWIFT_VERSION : ${{ matrix.swift.swift_version }}
76
+ COMMAND : ${{ inputs.matrix_linux_command }}
77
+ COMMAND_OVERRIDE_5_8 : ${{ inputs.matrix_linux_5_8_command_override }}
78
+ COMMAND_OVERRIDE_5_9 : ${{ inputs.matrix_linux_5_9_command_override }}
79
+ COMMAND_OVERRIDE_5_10 : ${{ inputs.matrix_linux_5_10_command_override }}
80
+ COMMAND_OVERRIDE_NIGHTLY_NEXT : ${{ inputs.matrix_linux_nightly_next_command_override }}
81
+ COMMAND_OVERRIDE_NIGHTLY_MAIN : ${{ inputs.matrix_linux_nightly_main_command_override }}
82
+ run : ./scripts/check-matrix-step.sh
0 commit comments