forked from freeciv/freeciv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ C, C++, python ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: +security-and-quality | ||
|
||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
gettext \ | ||
libgtk-3-dev \ | ||
libgtk-4-dev \ | ||
libcurl4-openssl-dev \ | ||
libtool \ | ||
automake \ | ||
autoconf \ | ||
autotools-dev \ | ||
language-pack-en \ | ||
python3.10 \ | ||
liblzma-dev \ | ||
libicu-dev \ | ||
libsqlite3-dev \ | ||
qt6-base-dev \ | ||
libsdl2-mixer-dev \ | ||
libsdl2-gfx-dev \ | ||
libsdl2-image-dev \ | ||
libsdl2-ttf-dev \ | ||
libmysqlclient-dev \ | ||
unixodbc-dev | ||
- name: build | ||
shell: bash | ||
run: ./scripts/ci-build.sh normal | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{ matrix.language }}" |