Update README.md #28
This file contains hidden or 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
| name: "CodeQL Analysis for Anvilock in Ubuntu" | |
| on: | |
| push: | |
| branches: [ "main" ] # Trigger on push to the 'main' branch | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: [ "main" ] # Trigger on pull requests to the 'main' branch | |
| jobs: | |
| codeql: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ "c" ] # Specify the primary language of your repo | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v2 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Install dependencies for Anvilock | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwayland-dev libxkbcommon-dev libpam0g-dev \ | |
| libgles2-mesa-dev libfreetype6-dev cmake make \ | |
| clang wget pkg-config wayland-protocols | |
| - name: Build Release Version of Anvilock (x86-64 arch) - GCC | |
| run: | | |
| make release | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v2 |