Skip to content

Commit

Permalink
Merge pull request #18932 from unoplatform/dev/jela/codeql-autobuild
Browse files Browse the repository at this point in the history
ci: Adjust CodeQL
  • Loading branch information
jeromelaban authored Nov 27, 2024
2 parents 419e618 + ea5fe3d commit 86b06d1
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
matrix:
include:
- language: csharp
build-mode: none
build-mode: manual
- language: java-kotlin
build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
- language: javascript-typescript
Expand All @@ -61,7 +61,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4


- name: Free Disk Space (Ubuntu)
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be #v1.3.1
Expand All @@ -73,12 +72,24 @@ jobs:
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: false
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Pin .NET Version
run: |
cp build/ci/net9/global.json global.json
- name: Setup .NET SDK
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3
with:
global-json-file: global.json
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
DOTNET_ROOT: ${{ runner.temp }}/.dotnet

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand All @@ -101,12 +112,8 @@ jobs:
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
cd src/SamplesApp/SamplesApp.Skia.Generic
dotnet build SamplesApp.Skia.Generic.csproj -f net9.0 -c Release -p:UnoTargetFrameworkOverride=net9.0 /bl:ios-netcoremobile-sampleapp.binlog
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit 86b06d1

Please sign in to comment.