Skip to content

Commit 3b22262

Browse files
committed
[CI] Update AMD CI Workflow to Include Build Directory Creation
- Added steps to create a build directory and configure CMake with ROCm support during the format check process. - Ensured cleanup of the build directory after the format check to maintain a clean workspace.
1 parent 1c30968 commit 3b22262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/amd_ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
- name: Run format check
4949
run: |
5050
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
51+
mkdir -p build
52+
cd build; cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_ROCM=ON; cd ..
5153
if ! output=$(./format.sh 2>&1); then
5254
echo "------------------------------------"
5355
echo "message:"
@@ -56,6 +58,7 @@ jobs:
5658
echo "------------------------------------"
5759
exit 1
5860
fi
61+
rm -rf build
5962
6063
- name: Commit and Push Changes
6164
uses: stefanzweifel/git-auto-commit-action@v5

0 commit comments

Comments
 (0)