Skip to content

Commit b749f4d

Browse files
authored
Update codeql-analysis.yml
Specify how to build nhapi (optmisation)
1 parent f437a4d commit b749f4d

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,20 @@ jobs:
5555

5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
58+
# - name: Autobuild
59+
# uses: github/codeql-action/autobuild@v2
60+
- name: Setup .NET Core
61+
uses: actions/setup-dotnet@v3
62+
with:
63+
global-json-file: global.json
64+
65+
- name: Restore nHapi
66+
run: |
67+
dotnet restore nHapi.sln --configfile build/.nuget/NuGet.config
68+
69+
- name: Build nHapi
70+
run: |
71+
dotnet build nHapi.sln -c Release --no-restore
6072
6173
# ℹ️ Command-line programs to run using the OS shell.
6274
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -69,4 +81,6 @@ jobs:
6981
# ./location_of_script_within_repo/buildscript.sh
7082

7183
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
84+
uses: github/codeql-action/analyze@v2
85+
with:
86+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)