Skip to content

Commit

Permalink
Use CMake instead of install script for codeql build
Browse files Browse the repository at this point in the history
  • Loading branch information
samjwu committed Apr 25, 2024
1 parent db88656 commit 5c78a6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ jobs:
echo 'Configure environment variables for ROCm'
export ROCM_PATH=/opt/rocm
export CMAKE_PREFIX_PATH=/opt/rocm:/opt/rocm/bin:/opt/rocm/include:/opt/rocm/lib
echo 'Building library with install script'
./install --install
echo 'Building library with CMake'
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=hipcc -DCMAKE_PREFIX_PATH=/opt/rocm ..
cmake --build .
cmake --build . --target install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit 5c78a6a

Please sign in to comment.