Skip to content

Commit 5d4b9b6

Browse files
authored
split aot destroy
1 parent 0320d29 commit 5d4b9b6

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,38 @@ jobs:
140140
run: |
141141
cd libraries/tests/e2e/infra
142142
cdk destroy --force
143-
144-
- name: Destroy x86_64 AOT Core Stack
145-
run: |
146-
cd libraries/tests/e2e/infra-aot
147-
cdk destroy -c architecture=x86_64 --force
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
148172

149173
- name: Destroy arm64 AOT Core Stack
150174
run: |
151175
cd libraries/tests/e2e/infra-aot
152-
cdk destroy -c architecture=arm64 --force
176+
cdk destroy -c architecture=${{ matrix.arch }} --force
153177

0 commit comments

Comments
 (0)