From 49ffd4c186491e5d35dbbbe0d38ca24edcb631b3 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 7 Mar 2022 14:30:29 +0100 Subject: [PATCH] CodeQL: Let's see if this works on GitHub Windows worker Signed-off-by: Simon Rozman --- .github/workflows/codeql-analysis.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4ca2a0c1..8d7a771f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,7 +23,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: windows-2019 permissions: actions: read contents: read @@ -50,21 +50,12 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 + - name: Prepare MSVC + uses: bus1/cabuild/action/msdevshell@v1 + with: + architecture: x64 - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release + - run: msbuild WinStd.sln -t:Build -p:Configuration=Release -p:Platform=x64 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1