mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: "CodeQL CI"
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: windows-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'go', 'cpp', 'csharp' ]
|
|
|
|
steps:
|
|
- name: Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.1
|
|
|
|
- name: C++
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
update: true
|
|
release: true
|
|
install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 mingw-w64-x86_64-freetype mingw-w64-x86_64-libpng mingw-w64-x86_64-bzip2 mingw-w64-x86_64-openssl mingw-w64-x86_64-mbedtls mingw-w64-x86_64-libsodium mingw-w64-x86_64-c-ares mingw-w64-x86_64-boost mingw-w64-x86_64-libmariadbclient unzip p7zip
|
|
|
|
- name: Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
profile: minimal
|
|
|
|
- name: MSBuild
|
|
uses: microsoft/setup-msbuild@v1.0.2
|
|
|
|
- name: Code QL
|
|
uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
shell: pwsh
|
|
run: |
|
|
.\build.ps1
|
|
|
|
- name: Analyze
|
|
uses: github/codeql-action/analyze@v1
|