Skip to content

Commit 8b39205

Browse files
committed
Remove python codeql and moved c codeql to be post cache creation
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
1 parent cf9b88a commit 8b39205

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
include:
1818
- language: 'c'
1919
build-mode: 'manual'
20-
- language: 'python'
21-
build-mode: 'none'
2220

2321
# github.head_ref will stop previous runs in the same PR (if in a PR)
2422
# github.run_id is a fallback when outside a PR (e.g. every merge in master will run, and previous won't stop)
@@ -37,6 +35,13 @@ jobs:
3735
# a pull request then we can checkout the head.
3836
fetch-depth: 2
3937

38+
- uses: actions/cache/restore@v6
39+
name: restore conan cache
40+
id: cache
41+
with:
42+
path: ~/.conan2
43+
key: ${{ runner.os }}-${{ matrix.CC }}-${{ hashFiles('conanfile.py') }}
44+
4045
# Initializes the CodeQL tools for scanning.
4146
- name: Initialize CodeQL
4247
uses: github/codeql-action/init@v4
@@ -45,8 +50,7 @@ jobs:
4550
build-mode: ${{ matrix.build-mode }}
4651

4752
# Build hercules
48-
- if: matrix.build-mode == 'manual'
49-
name: Manual Build
53+
- name: Manual Build
5054
run: |
5155
./tools/ci/travis.sh prepareenv
5256
source .venv/bin/activate

.github/workflows/controller.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ jobs:
77
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
88
uses: ./.github/workflows/hwsapibot.yml
99
secrets: inherit
10-
codeql:
11-
needs: hwsapibot
12-
if: ${{ !failure() && !cancelled() }}
13-
uses: ./.github/workflows/codeql-analysis.yml
1410
tools:
1511
needs: hwsapibot
1612
if: ${{ !failure() && !cancelled() }}
@@ -19,6 +15,10 @@ jobs:
1915
needs: hwsapibot
2016
if: ${{ !failure() && !cancelled() }}
2117
uses: ./.github/workflows/tools-windows.yml
18+
codeql:
19+
needs: tools
20+
if: ${{ !failure() && !cancelled() }}
21+
uses: ./.github/workflows/codeql-analysis.yml
2222
build:
2323
needs: tools
2424
if: ${{ !failure() && !cancelled() }}

0 commit comments

Comments
 (0)