mirror of
https://github.com/arvidn/libtorrent.git
synced 2026-05-09 09:19:41 -04:00
7f6f7d0bda
* Bump `actions/checkout` -> `v6` * Bump `actions/cache` -> `v5` * Bump `pypa/cibuildwheel` -> `v3.3.0` * Bump `actions/upload-artifact` -> `v6` * Bump `actions/download-artifact` -> `v7` * Bump `codeql-action/init` -> `v4` * Bump `codeql-action/analyze` -> `v4
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "RC_2_0", "RC_1_0", "RC_1_1", "RC_1_2", "master" ]
|
|
pull_request:
|
|
branches: [ "RC_2_0" ]
|
|
schedule:
|
|
- cron: "3 12 * * 2"
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ cpp ]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 1
|
|
filter: tree:0
|
|
|
|
- name: Install Packages (cpp)
|
|
if: ${{ matrix.language == 'cpp' }}
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install --yes libboost-all-dev libssl-dev ninja-build
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: +security-and-quality
|
|
|
|
- name: Build cpp
|
|
if: ${{ matrix.language == 'cpp' }}
|
|
run: |
|
|
cmake -Dbuild_examples=ON -Dbuild_tests=ON -Dbuild_tools=ON -GNinja .
|
|
cmake --build .
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: "/language:${{ matrix.language }}"
|