Skip to content

Commit 9c1fe25

Browse files
[CI][5/N] Enable actual AWS start/stop in sycl_precommit_aws.yml
1 parent c4743a7 commit 9c1fe25

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/sycl_precommit_aws.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,24 @@ on:
99

1010
jobs:
1111
aws:
12-
runs-on: [cuda]
12+
runs-on: ubuntu-20.04
1313
environment: aws
1414
steps:
15-
# - uses: actions/checkout@v3
16-
# with:
17-
# sparse-checkout: devops/actions/aws-ec2
18-
# - run: npm install ./devops/actions/aws-ec2
19-
- run: echo "${{ github.event.action }}"
15+
- uses: actions/checkout@v3
16+
with:
17+
sparse-checkout: devops/actions/aws-ec2
18+
- run: npm install ./devops/actions/aws-ec2
2019
- id: mode
2120
run: |
2221
if [ "${{ github.event.action }}" == "completed" ]; then
2322
echo 'MODE=stop' >> $GITHUB_OUTPUT
2423
else
2524
echo 'MODE=start' >> $GITHUB_OUTPUT
2625
fi
27-
- run: echo "${{ steps.mode.outputs.MODE }}"
28-
- run: echo '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
29-
# - uses: ./devops/actions/aws-ec2
30-
# with:
31-
# mode: ${{ steps.mode.outputs.MODE }}
32-
# runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
33-
# GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
34-
# AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
35-
# AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
26+
- uses: ./devops/actions/aws-ec2
27+
with:
28+
mode: ${{ steps.mode.outputs.MODE }}
29+
runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
30+
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
31+
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
32+
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}

0 commit comments

Comments
 (0)