-
Notifications
You must be signed in to change notification settings - Fork 28
68 lines (60 loc) · 1.68 KB
/
amd_workflow.yml
File metadata and controls
68 lines (60 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: AMD PyTorch Job
on:
workflow_dispatch:
inputs:
run_id:
description: 'Unique identifier for this run'
required: true
type: string
payload:
description: 'Content of the user submission, as json string'
required: true
type: string
runner:
description: 'AMD runner to run workflow on'
required: true
default: "arc-runner-set"
type: string
requirements:
description: 'Contents for a requirements.txt file'
required: false
type: string
run-name: 'AMD Job - ${{ github.event.inputs.run_id }}'
jobs:
run:
runs-on: ${{ github.event.inputs.runner }}
strategy:
fail-fast: false
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- name: Create input files
shell: bash
run: |
# Extract the payload content without printing it
PAYLOAD=$(jq -r '.inputs.payload' $GITHUB_EVENT_PATH)
# Apply mask to the extracted content
echo "::add-mask::$PAYLOAD"
# Now write to file (won't be logged since it's masked)
echo "$PAYLOAD" > payload.json
- name: Install kernelbot
shell: bash
run: |
pip install --break-system-packages -e .
- name: Run script
shell: bash
run: |
python3 src/runners/github-runner.py
- name: Upload training artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: run-result
path: result.json
- name: Upload profiling artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: profile-data
path: profile_data/*
retention-days: 1