Skip to content

Commit 03782b5

Browse files
committed
Change the AMI, AWS_ROLE and other parameter
- This commit aligns the AWS_ROLE and other parameters with those used in mlkem-native. we now use the same AMI, AWS_ROLE, and related configuration parameters for ec2_compatibilitytests to ensure consistency with mlkem-native. Signed-off-by: willieyz <willie.zhao@chelpis.com>
1 parent ed3156e commit 03782b5

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) The mlkem-native project authors
2+
# Copyright (c) The mldsa-native project authors
3+
# SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
4+
5+
name: Dependencies (yum)
6+
description: Install dependencies via yum
7+
8+
inputs:
9+
packages:
10+
description: Space-separated list of additional packages to install
11+
required: false
12+
default: ''
13+
sudo:
14+
required: false
15+
default: 'sudo'
16+
17+
runs:
18+
using: composite
19+
steps:
20+
- name: Install base packages
21+
shell: bash
22+
run: |
23+
${{ inputs.sudo }} yum install make gcc python3 git -y
24+
- name: Install additional packages
25+
if: ${{ inputs.packages != ''}}
26+
shell: bash
27+
run: |
28+
${{ inputs.sudo }} yum install ${{ inputs.packages }} -y

.github/workflows/ci_ec2_container.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ on:
6262
type: string
6363
default: ''
6464
env:
65-
AWS_ROLE: arn:aws:iam::904233116199:role/mldsa-native-ci
65+
AWS_ROLE: arn:aws:iam::559050233797:role/mlkem-c-aarch64-gh-action
6666
AWS_REGION: us-east-1
67-
AMI_UBUNTU_LATEST_X86_64: ami-084568db4383264d4
68-
AMI_UBUNTU_LATEST_AARCH64: ami-0c4e709339fa8521a
67+
AMI_UBUNTU_LATEST_X86_64: ami-0e86e20dae9224db8
68+
AMI_UBUNTU_LATEST_AARCH64: ami-096ea6a12ea24a797
6969
jobs:
7070
start-ec2-runner:
7171
name: Start instance (${{ inputs.ec2_instance_type }})
@@ -107,8 +107,8 @@ jobs:
107107
github-token: ${{ secrets.AWS_GITHUB_TOKEN }}
108108
ec2-image-id: ${{ steps.det_ami_id.outputs.AMI_ID }}
109109
ec2-instance-type: ${{ inputs.ec2_instance_type }}
110-
subnet-id: subnet-094d73eb42eb6bf5b
111-
security-group-id: sg-0282706dbc92a1579
110+
subnet-id: subnet-07b2729e5e065962f
111+
security-group-id: sg-0ab2e297196c8c381
112112
- name: Start EC2 runner (wait before retry)
113113
if: steps.start-ec2-runner-first.outcome == 'failure'
114114
shell: bash
@@ -124,8 +124,8 @@ jobs:
124124
github-token: ${{ secrets.AWS_GITHUB_TOKEN }}
125125
ec2-image-id: ${{ steps.det_ami_id.outputs.AMI_ID }}
126126
ec2-instance-type: ${{ inputs.ec2_instance_type }}
127-
subnet-id: subnet-094d73eb42eb6bf5b
128-
security-group-id: sg-0282706dbc92a1579
127+
subnet-id: subnet-07b2729e5e065962f
128+
security-group-id: sg-0ab2e297196c8c381
129129
- name: Remember runner
130130
id: remember-runner
131131
shell: bash

0 commit comments

Comments
 (0)