Demo – minimal EC2 GPU job #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Demo – minimal EC2 GPU runner | |
| on: | |
| workflow_dispatch: | |
| workflow_call: # Tested by `demos.yml` | |
| permissions: | |
| id-token: write # Required for AWS OIDC authentication | |
| contents: read # Required for actions/checkout | |
| jobs: | |
| ec2: | |
| # To use from another repo: Open-Athena/ec2-gha/.github/workflows/runner.yml | |
| uses: ./.github/workflows/runner.yml | |
| secrets: inherit | |
| with: | |
| ec2_instance_type: t3.medium | |
| ec2_image_id: ami-0e86e20dae9224db8 # Ubuntu 24.04 LTS x86_64 (us-east-1) | |
| gpu-test: | |
| needs: ec2 | |
| runs-on: ${{ needs.ec2.outputs.id }} | |
| steps: | |
| - run: nvidia-smi # Verify GPU is available |