diff options
author | flow <flowlnlnln@gmail.com> | 2022-11-14 14:16:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 14:16:01 -0800 |
commit | cedc7754d96e4c53d50bcce2b2a0f139b840f3d0 (patch) | |
tree | 4ed309ec0c3419d759c0d7459c7517101e2b252e /.github/workflows/codeql.yml | |
parent | fece9e207bdae16574f450593346e80f50702b00 (diff) | |
parent | 5be947291285fc8ed10852b54a647ecd338d645d (diff) | |
download | PrismLauncher-cedc7754d96e4c53d50bcce2b2a0f139b840f3d0.tar.gz PrismLauncher-cedc7754d96e4c53d50bcce2b2a0f139b840f3d0.tar.bz2 PrismLauncher-cedc7754d96e4c53d50bcce2b2a0f139b840f3d0.zip |
Merge pull request #428 from DioEgizio/fixes-to-CI
Diffstat (limited to '.github/workflows/codeql.yml')
-rw-r--r-- | .github/workflows/codeql.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..0cd1f6e4 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,35 @@ +name: "CodeQL Code Scanning" + +on: [ push, pull_request, workflow_dispatch ] + +jobs: + CodeQL: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + submodules: 'true' + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + config-file: ./.github/codeql/codeql-config.yml + queries: security-and-quality + languages: cpp, java + + - name: Install Dependencies + run: + sudo apt-get -y update + + sudo apt-get -y install ninja-build extra-cmake-modules scdoc qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5 + + - name: Configure and Build + run: | + cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DLauncher_QT_VERSION_MAJOR=5 -G Ninja + + cmake --build build + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 |