1
0
forked from me/IronOS

Merge pull request #901 from Ralim/faster-codeql

Use cache for codeql + drop JS
This commit is contained in:
Ben V. Brown
2021-03-21 21:47:46 +11:00
committed by GitHub

View File

@@ -13,12 +13,12 @@ name: "CodeQL"
on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '38 23 * * 6'
- cron: "38 23 * * 6"
jobs:
analyze:
@@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'javascript', 'python' ]
language: ["cpp", "python"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
@@ -49,10 +49,21 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
- run: |
chmod +x setup.sh && chmod +x source/build.sh && sudo mkdir -p /build/cache && sudo chmod -R 777 /build
./setup.sh
cd source && ./build.sh
- name: chmod
run: chmod +x setup.sh && chmod +x source/build.sh && sudo mkdir -p /build/cache && sudo chmod -R 777 /build
- name: Cached compiler source files
uses: actions/cache@v2.1.4
env:
cache-name: cache-compilers
with:
path: /build/cache
key: ${{ runner.os }}-build-${{ env.cache-name }}
restore-keys: |
${{ runner.os }}-
- name: setup
run: ./setup.sh && cd source && ./build.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1