forked from pytorch/audio
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (27 loc) · 959 Bytes
/
Copy pathcodeql.yml
File metadata and controls
37 lines (27 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# GitHub Actions CodeQL Workflow
name: CodeQL
on:
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: python, cpp
- name: Update submodules
run: git submodule update --init --recursive
- name: Install Torch
run: |
python -m pip install cmake ninja
python -m pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- name: Build TorchAudio
run: BUILD_SOX=1 USE_CUDA=0 python setup.py develop --user
# If any code scanning alerts are found, they will be under Security -> CodeQL
# Link: https://github.com/pytorch/audio/security/code-scanning
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1