11
11
# type: sequence
12
12
# description: "The examples to run."
13
13
# required: true
14
- matrix_linux_command_override :
15
- type : string
16
- description : " The command of the current Swift version linux matrix job to execute."
17
14
matrix_linux_command :
18
15
type : string
19
16
description : " The command of the current Swift version linux matrix job to execute."
20
17
required : true
21
- matrix_linux_nightly_6_0_enabled :
22
- type : boolean
23
- description : " Boolean to enable the nightly 6.0 Swift version matrix job. Defaults to true."
24
- default : true
25
- matrix_linux_nightly_6_0_container_image :
26
- type : string
27
- description : " Container image for the nightly 6.0 Swift version matrix job. Defaults to matching Swift Ubuntu image."
28
- default : " swiftlang/swift:nightly-6.0-jammy"
29
- matrix_linux_nightly_6_0_command_override :
30
- type : string
31
- description : " The command of the nightly 6.0 Swift version linux matrix job to execute."
32
- matrix_linux_nightly_main_enabled :
33
- type : boolean
34
- description : " Boolean to enable the nightly main Swift version matrix job. Defaults to true."
35
- default : true
36
- matrix_linux_nightly_main_container_image :
37
- type : string
38
- description : " Container image for the nightly main Swift version matrix job. Defaults to matching Swift Ubuntu image."
39
- default : " swiftlang/swift:nightly-main-jammy"
40
- matrix_linux_nightly_main_command_override :
18
+ matrix_linux_swift_container_image :
41
19
type : string
42
- description : " The command of the nightly main Swift version linux matrix job to execute."
20
+ description : " Container image for the 6.0 Swift version matrix job. Defaults to matching latest Swift Ubuntu image."
21
+ default : " swiftlang/swift:6.0.1-noble"
43
22
44
23
# # We are cancelling previously triggered workflow runs
45
24
concurrency :
@@ -57,33 +36,24 @@ jobs:
57
36
examples : [ "HelloWorld", "APIGateway" ]
58
37
# examples: ${{ inputs.examples }}
59
38
60
- # We are specifying only the major and minor of the docker images to automatically pick up the latest patch release
39
+ # We are using only one Swift version
61
40
swift :
62
- - image : ${{ inputs.matrix_linux_nightly_6_0_container_image }}
63
- swift_version : " nightly-6.0"
64
- enabled : ${{ inputs.matrix_linux_nightly_6_0_enabled }}
65
- - image : ${{ inputs.matrix_linux_nightly_main_container_image }}
66
- swift_version : " nightly-main"
67
- enabled : ${{ inputs.matrix_linux_nightly_main_enabled }}
41
+ - image : ${{ inputs.matrix_linux_swift_container_image }}
42
+ swift_version : " 6.0.1-noble"
68
43
container :
69
44
image : ${{ matrix.swift.image }}
70
45
steps :
71
46
- name : Checkout repository
72
- if : ${{ matrix.swift.enabled }}
73
47
uses : actions/checkout@v4
74
48
with :
75
49
persist-credentials : false
76
50
- name : Mark the workspace as safe
77
- if : ${{ matrix.swift.enabled }}
78
51
# https://github.com/actions/checkout/issues/766
79
52
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
80
53
- name : Run matrix job
81
- if : ${{ matrix.swift.enabled }}
82
54
env :
83
55
SWIFT_VERSION : ${{ matrix.swift.swift_version }}
84
56
COMMAND : ${{ inputs.matrix_linux_command }}
85
- COMMAND_OVERRIDE_NIGHTLY_6_0 : ${{ inputs.matrix_linux_nightly_6_0_command_override }}
86
- COMMAND_OVERRIDE_NIGHTLY_MAIN : ${{ inputs.matrix_linux_nightly_main_command_override }}
87
57
EXAMPLE : ${{ matrix.examples }}
88
58
run : |
89
59
apt-get -qq update && apt-get -qq -y install curl
0 commit comments