Skip to content

Commit

Permalink
Update codeql.yml: fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisLiuPub authored Jul 2, 2024
1 parent 74a2dbf commit c935214
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (github.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-22.04' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
Expand All @@ -45,7 +45,7 @@ jobs:
matrix:
include:
- language: c-cpp
build-mode: autobuild
build-mode: manual
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
Expand Down Expand Up @@ -82,12 +82,18 @@ jobs:
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
df -h
sudo docker rmi $(docker image ls -aq) || true
sudo swapoff /swapfile || true
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc || true
mkdir -p ../workspace
cp -r ${GITHUB_WORKSPACE}/.ci_local_test/ros2_openvino_toolkit_test ../workspace
cp -r ${GITHUB_WORKSPACE} ../workspace/ros2_openvino_toolkit_test
ls ${GITHUB_WORKSPACE}/docker/Dockerfile
cp ${GITHUB_WORKSPACE}/docker/Dockerfile ../workspace/ros2_openvino_toolkit_test
ls ../workspace/ros2_openvino_toolkit_test/Dockerfile
cd ../workspace/ros2_openvino_toolkit_test && ./docker_run.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit c935214

Please sign in to comment.