Skip to content

Commit 08ba2a4

Browse files
committed
Add setup-linux
1 parent 3a941d1 commit 08ba2a4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ jobs:
2323
SCCACHE_BUCKET: ossci-compiler-cache-circleci-v2
2424
GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }}
2525
steps:
26+
- name: Setup Linux
27+
uses: pytorch/test-infra/.github/actions/setup-linux@main
2628
- name: Setup SSH (Click me for login details)
2729
uses: pytorch/test-infra/.github/actions/setup-ssh@main
2830
with:
2931
github-secret: ${{ secrets.GITHUB_TOKEN }}
3032
instructions: |
3133
Build is done inside the container, to start an interactive session run:
3234
docker exec -it $(docker container ps --format '{{.ID}}') bash
33-
3435
- name: Checkout repo
3536
uses: actions/checkout@v3
3637
- name: Download docker image from GCR
@@ -96,17 +97,15 @@ jobs:
9697
WORKDIR: /var/lib/jenkins/workspace
9798
GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }}
9899
steps:
100+
- name: Setup Linux
101+
uses: pytorch/test-infra/.github/actions/setup-linux@main
99102
- name: Setup SSH (Click me for login details)
100103
uses: pytorch/test-infra/.github/actions/setup-ssh@main
101104
with:
102105
github-secret: ${{ secrets.GITHUB_TOKEN }}
103106
instructions: |
104107
Build is done inside the container, to start an interactive session run:
105108
docker exec -it $(docker container ps --format '{{.ID}}') bash
106-
- name: Install nvidia driver, nvidia-docker runtime, set GPU_FLAG
107-
id: install-nvidia-driver
108-
uses: pytorch/test-infra/.github/actions/setup-nvidia@main
109-
if: contains(matrix.runner, 'nvidia')
110109
- name: Download and run docker image from GCR
111110
shell: bash
112111
run: |

0 commit comments

Comments
 (0)