Skip to content

Commit 095fced

Browse files
committed
Add test jobs to verify AMI works after build
Signed-off-by: Claude <[email protected]>
1 parent 8c1b889 commit 095fced

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/ami-prebuild.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,52 @@ jobs:
113113
echo "- **AMI ID:** ${{ steps.build.outputs.ami-id }}" >> $GITHUB_STEP_SUMMARY
114114
echo "- **AMI Name:** ${{ steps.build.outputs.ami-name }}" >> $GITHUB_STEP_SUMMARY
115115
echo "- **Deprecation:** ${{ inputs.retention-days || '30' }} days" >> $GITHUB_STEP_SUMMARY
116+
117+
# Test the newly built AMI by running a simple lint check
118+
test-x64:
119+
name: "Test AMI (x64)"
120+
needs: build-x64
121+
runs-on:
122+
- runs-on=${{ github.run_id }}
123+
- family=m7i+m7i-flex+m7a
124+
- cpu=4
125+
- image=vortex-ci-amd64
126+
- tag=test-ami-x64
127+
timeout-minutes: 30
128+
steps:
129+
- uses: actions/checkout@v6
130+
- name: Verify tools are installed
131+
run: |
132+
echo "Checking installed tools..."
133+
cargo --version
134+
rustc --version
135+
rustup show
136+
protoc --version
137+
flatc --version
138+
mold --version
139+
- name: Run cargo check
140+
run: cargo check --locked
141+
142+
test-arm64:
143+
name: "Test AMI (arm64)"
144+
needs: build-arm64
145+
runs-on:
146+
- runs-on=${{ github.run_id }}
147+
- family=m7g
148+
- cpu=4
149+
- image=vortex-ci-arm64
150+
- tag=test-ami-arm64
151+
timeout-minutes: 30
152+
steps:
153+
- uses: actions/checkout@v6
154+
- name: Verify tools are installed
155+
run: |
156+
echo "Checking installed tools..."
157+
cargo --version
158+
rustc --version
159+
rustup show
160+
protoc --version
161+
flatc --version
162+
mold --version
163+
- name: Run cargo check
164+
run: cargo check --locked

0 commit comments

Comments
 (0)