Skip to content

Commit

Permalink
Added codeql with dotnet build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Hanea committed Feb 15, 2025
1 parent b28ee93 commit a56fcf4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
description: 'Enable GPU libraries build and publish'
required: true
default: 'false'
schedule:
- cron: '40 17 * * 0'

jobs:
android:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ jobs:

- name: Restore dependencies
run: dotnet restore ./Whisper.net.sln


# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp
build-mode: manual

- name: Build
run: dotnet build ./Whisper.net.sln --no-restore -warnaserror

Expand All @@ -53,6 +60,11 @@ jobs:
path: ./**/*.trx
reporter: dotnet-trx

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:csharp"

- name: Upload trx files
uses: actions/upload-artifact@v4
if: success() || failure() # run this step even if previous step failed
Expand Down

0 comments on commit a56fcf4

Please sign in to comment.