File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,22 +57,30 @@ jobs:
5757 run : pip install -r scripts/requirements.txt
5858
5959 - name : Cache CodeQL
60+ id : cache-codeql
6061 uses : actions/cache@v6
6162 with :
62- path : ~/.codeql
63- key : ${{ runner.os }}-codeql-cache-${{ matrix.language }}-${{ matrix.codeql_cli }}-${{ github.run_id }}
64- restore-keys : |
65- ${{ runner.os }}-codeql-cache-${{ matrix.language }}-${{ matrix.codeql_cli }}
66- ${{ runner.os }}-codeql-cache-${{ matrix.language }}
63+ # A list of files, directories, and wildcard patterns to cache and restore
64+ path : ${{github.workspace}}/codeql_home
65+ # An explicit key for restoring and saving the cache
66+ key : codeql-home-${{matrix.os}}-${{matrix.codeql_cli}}-${{matrix.codeql_standard_library}}
6767
6868 - name : Install CodeQL
69+ if : steps.cache-codeql.outputs.cache-hit != 'true'
6970 uses : ./.github/actions/install-codeql
7071 with :
7172 codeql-cli-version : ${{ matrix.codeql_cli }}
7273 codeql-stdlib-version : ${{ matrix.codeql_standard_library }}
7374 codeql-home : ${{ github.workspace }}/codeql_home
7475 add-to-path : false
7576
77+ - name : Cache codeql compilation
78+ uses : actions/cache@v6
79+ with :
80+ path : ~/.codeql
81+ key : ${{ runner.os }}-codeql-compilation-${{ github.run_id }}
82+ restore-keys : ${{ runner.os }}-codeql-compilation
83+
7684 - name : Install CodeQL packs
7785 uses : ./.github/actions/install-codeql-packs
7886 with :
You can’t perform that action at this time.
0 commit comments