-
-
Notifications
You must be signed in to change notification settings - Fork 5k
37 lines (33 loc) · 916 Bytes
/
rocm.yml
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
name: AMD ROCm Build
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
jobs:
rocm:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Check environment
run: |
docker --version
- name: Build Docker
run: |
docker build -t rocm -f Dockerfile.rocm .
- name: Run Sanity Test
run: |
# detele any existing container
docker rm -f $(docker ps -a -q)
# run the container
docker run -d --p 8000:8000 rocm
# wait for the server to start
while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8000)" != "200" ]; do sleep 1; done
# run the sanity test
python examples/openai_completion_client.py
# remove the container
docker rm -f $(docker ps -a -q)