2323jobs :
2424 analyze :
2525 name : Analyze
26- runs-on : ubuntu-latest
26+ runs-on : ubuntu-20.04
2727 permissions :
2828 actions : read
2929 contents : read
@@ -32,39 +32,56 @@ jobs:
3232 strategy :
3333 fail-fast : false
3434 matrix :
35- language : [ 'cpp', 'java', 'python', 'ruby' ]
35+ language : [ 'cpp' ]
3636 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737 # Learn more about CodeQL language support at https://git.io/codeql-language-support
3838
3939 steps :
40- - name : Checkout repository
41- uses : actions/checkout@v2
40+ - name : Checkout repository
41+ uses : actions/checkout@v2
4242
43- # Initializes the CodeQL tools for scanning.
44- - name : Initialize CodeQL
45- uses : github/codeql-action/init@v1
46- with :
47- languages : ${{ matrix.language }}
48- # If you wish to specify custom queries, you can do so here or in a config file.
49- # By default, queries listed here will override any specified in a config file.
50- # Prefix the list here with "+" to use these queries and those in the config file.
51- # queries: ./path/to/local/query, your-org/your-repo/queries@main
43+ # Initializes the CodeQL tools for scanning.
44+ - name : Initialize CodeQL
45+ uses : github/codeql-action/init@v1
46+ with :
47+ languages : ${{ matrix.language }}
48+ # If you wish to specify custom queries, you can do so here or in a config file.
49+ # By default, queries listed here will override any specified in a config file.
50+ # Prefix the list here with "+" to use these queries and those in the config file.
51+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
5252
53- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54- # If this step fails, then you should remove it and run the build manually (see below)
55- - name : Autobuild
56- uses : github/codeql-action/autobuild@v1
53+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+ # If this step fails, then you should remove it and run the build manually (see below)
55+ # - name: Autobuild
56+ # uses: github/codeql-action/autobuild@v1
5757
58- # ℹ️ Command-line programs to run using the OS shell.
59- # 📚 https://git.io/JvXDl
58+ # ℹ️ Command-line programs to run using the OS shell.
59+ # 📚 https://git.io/JvXDl
6060
61- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62- # and modify them (or add more) to build your code if your project
63- # uses a compiled language
61+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+ # and modify them (or add more) to build your code if your project
63+ # uses a compiled language
64+ - run : |
65+ sudo apt-get install -y yasm
66+ sudo apt-get install -y libsdl2-dev
67+ sudo apt-get install git make gcc autoconf libtool yasm cmake g++ libsdl2-dev
68+ wget "https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.tar.gz"
69+ tar zxf cmake-3.16.2-Linux-x86_64.tar.gz
70+ export PATH=`pwd`/cmake-3.16.2-Linux-x86_64/bin:$PATH
71+ sudo apt-get install clang llvm
72+ echo 1 | sudo update-alternatives --config c++
73+ echo 1 | sudo update-alternatives --config cc
74+ git config --global user.email "you@example.com"
75+ git config --global user.name "Your Name"
76+ . setup.env
77+ cd external/
78+ ./build_external.sh Linux
79+ cd ..
80+ cd cmdline/
81+ mkdir build
82+ cd build
83+ cmake ../
84+ make cicadaPlayer -j8
6485
65- # - run: |
66- # make bootstrap
67- # make release
68-
69- - name : Perform CodeQL Analysis
70- uses : github/codeql-action/analyze@v1
86+ - name : Perform CodeQL Analysis
87+ uses : github/codeql-action/analyze@v1
0 commit comments