51
51
cdk deploy --require-approval never
52
52
53
53
deploy-aot-stack :
54
- runs-on : ubuntu-latest
54
+ strategy :
55
+ matrix :
56
+ os : [ubuntu-24.04-arm, ubuntu-latest]
57
+ include :
58
+ - os : ubuntu-24.04-arm
59
+ arch : arm64
60
+ - os : ubuntu-latest
61
+ arch : x86_64
62
+ runs-on : ${{ matrix.os }}
55
63
steps :
56
64
- name : Checkout code
57
65
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
@@ -73,10 +81,10 @@ jobs:
73
81
- name : Install AWS Lambda .NET CLI Tools
74
82
run : dotnet tool install -g Amazon.Lambda.Tools
75
83
76
- - name : Deploy AOT Stack x86_64
84
+ - name : Deploy AOT Stack
77
85
run : |
78
86
cd libraries/tests/e2e/infra-aot
79
- cdk deploy -c architecture=x86_64 --require-approval never
87
+ cdk deploy -c architecture=${{ matrix.arch }} --require-approval never
80
88
81
89
run-tests :
82
90
runs-on : ubuntu-latest
@@ -132,8 +140,38 @@ jobs:
132
140
run : |
133
141
cd libraries/tests/e2e/infra
134
142
cdk destroy --force
135
-
136
- - name : Destroy AOT Core Stack
143
+
144
+ destroy-aot-stack :
145
+ strategy :
146
+ matrix :
147
+ os : [ubuntu-24.04-arm, ubuntu-latest]
148
+ include :
149
+ - os : ubuntu-24.04-arm
150
+ arch : arm64
151
+ - os : ubuntu-latest
152
+ arch : x86_64
153
+ runs-on : ${{ matrix.os }}
154
+ needs : run-tests
155
+ if : always()
156
+ steps :
157
+ - name : Checkout code
158
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
159
+
160
+ - name : Configure AWS credentials
161
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
162
+ with :
163
+ role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
164
+ aws-region : us-east-1
165
+ mask-aws-account-id : true
166
+
167
+ - name : Install CDK
168
+ run : npm install -g aws-cdk
169
+
170
+ - name : Install AWS Lambda .NET CLI Tools
171
+ run : dotnet tool install -g Amazon.Lambda.Tools
172
+
173
+ - name : Destroy arm64 AOT Core Stack
137
174
run : |
138
175
cd libraries/tests/e2e/infra-aot
139
- cdk destroy -c architecture=x86_64 --force
176
+ cdk destroy -c architecture=${{ matrix.arch }} --force
177
+
0 commit comments