Skip to content

Commit

Permalink
Try ROCm Runner (#1897)
Browse files Browse the repository at this point in the history
* move tidy,cppcheck to rocm-ubuntu runners
  • Loading branch information
umangyadav authored Jul 7, 2023
1 parent a83371c commit c1b8c97
Showing 1 changed file with 6 additions and 39 deletions.
45 changes: 6 additions & 39 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,8 @@ jobs:
with:
access_token: ${{ github.token }}
tidy:
runs-on: ubuntu-20.04

steps:
- name: Free space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true

runs-on: ROCM-Ubuntu
steps:
- uses: actions/checkout@v3

# In this step, this action saves a list of existing images,
Expand Down Expand Up @@ -71,7 +60,7 @@ jobs:
-DCLANG_TIDY_DEPEND_ON_TARGET=Off \
-DCLANG_TIDY_CACHE=/data/tidy-cache \
..
make -j2 -k onnx-proto tf-proto tidy
make -j$(nproc) -k onnx-proto tf-proto tidy
# GH actions can not update existing cache, as a workaround clear cache and then save it
- name: Clear tidy cache before saving
Expand All @@ -93,20 +82,8 @@ jobs:


cppcheck:
runs-on: ubuntu-20.04

runs-on: ROCM-Ubuntu
steps:
- name: Free space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true


- uses: actions/checkout@v3

# In this step, this action saves a list of existing images,
Expand Down Expand Up @@ -142,7 +119,7 @@ jobs:
-DBUILD_DEV=On \
-DROCM_ENABLE_GH_ANNOTATIONS=On \
..
make -j2 cppcheck
make -j$(nproc) cppcheck
# GH actions can not update existing cache, as a workaround clear cache and then save it
- name: Clear cppcheck cache before saving
Expand All @@ -164,18 +141,8 @@ jobs:


format:
runs-on: ubuntu-20.04

runs-on: ROCM-Ubuntu
steps:
- name: Free space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- uses: actions/checkout@v3

# In this step, this action saves a list of existing images,
Expand Down

0 comments on commit c1b8c97

Please sign in to comment.