mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
40 lines
859 B
YAML
40 lines
859 B
YAML
name: "Code Scanning - Action"
|
|
|
|
on:
|
|
push:
|
|
schedule:
|
|
- cron: '0 0 * * 0'
|
|
|
|
jobs:
|
|
CodeQL-Build:
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
|
|
- name: Manual build (Windows)
|
|
if: runner.os == 'windows'
|
|
run : |
|
|
dev.cmd layout Release
|
|
working-directory: src
|
|
|
|
- name: Manual build (Non-Windows)
|
|
if: runner.os != 'windows'
|
|
run : |
|
|
./dev.sh layout Release
|
|
working-directory: src
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1
|