Code Scanning - Action #1143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code Scanning - Action" | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [master, develop] | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
CodeQL-Build-MacOS: | |
strategy: | |
fail-fast: false | |
runs-on: macOS-12 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: csharp | |
# ℹ️ Command-line programs to run using the OS shell. | |
# 📚 https://git.io/JvXDl | |
- name: Install workloads | |
run: dotnet workload install android ios macos -v diagnostic | |
- name: Run the Cake script | |
uses: cake-build/cake-action@v1 | |
env: | |
STORAGE_AUTH_PARAMS: ${{ secrets.STORAGE_AUTH_PARAMS }} | |
with: | |
target: Externals-Apple | |
cake-version: 2.2.0 | |
- run: | | |
echo "Build App Center For iOS" | |
dotnet msbuild SDK/AppCenter/Microsoft.AppCenter.Apple/Microsoft.AppCenter.Apple.csproj /p:Configuration=Release /restore /t:Build | |
dotnet msbuild SDK/AppCenterAnalytics/Microsoft.AppCenter.Analytics.Apple/Microsoft.AppCenter.Analytics.Apple.csproj /p:UseSharedCompilation=false /restore /t:Build | |
dotnet msbuild SDK/AppCenterCrashes/Microsoft.AppCenter.Crashes.Apple/Microsoft.AppCenter.Crashes.Apple.csproj /p:UseSharedCompilation=false /restore /t:Build | |
dotnet msbuild SDK/AppCenterDistribute/Microsoft.AppCenter.Distribute.Apple/Microsoft.AppCenter.Distribute.Apple.csproj /p:UseSharedCompilation=false /restore /t:Build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v1 | |
CodeQL-Build-Windows: | |
strategy: | |
fail-fast: false | |
runs-on: windows-2019 | |
env: | |
STORAGE_AUTH_PARAMS: ${{ secrets.STORAGE_AUTH_PARAMS }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: csharp | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'microsoft' | |
java-version: '11' | |
- name: Install workloads | |
run: dotnet workload install android | |
- run: | | |
echo "Run Externals-Android" | |
.\build.ps1 --target="Externals-Android" | |
- run: | | |
echo "Build App Center" | |
$Env:Path += ";C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" | |
dotnet msbuild AppCenter-SDK-Build-Windows.sln -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
dotnet msbuild SDK/AppCenter/Microsoft.AppCenter/Microsoft.AppCenter.csproj -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
dotnet msbuild SDK/AppCenterAnalytics/Microsoft.AppCenter.Analytics/Microsoft.AppCenter.Analytics.csproj -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
dotnet msbuild SDK/AppCenterCrashes/Microsoft.AppCenter.Crashes/Microsoft.AppCenter.Crashes.csproj -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
dotnet msbuild SDK/AppCenterDistribute/Microsoft.AppCenter.Distribute/Microsoft.AppCenter.Distribute.csproj -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
- run: | | |
echo "Build App Center For Android" | |
$Env:Path += ";C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" | |
dotnet msbuild SDK/AppCenter/Microsoft.AppCenter.Android/Microsoft.AppCenter.Android.csproj -property:Configuration=Release /restore -target:Build | |
dotnet msbuild SDK/AppCenterAnalytics/Microsoft.AppCenter.Analytics.Android/Microsoft.AppCenter.Analytics.Android.csproj -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
dotnet msbuild SDK/AppCenterCrashes/Microsoft.AppCenter.Crashes.Android/Microsoft.AppCenter.Crashes.Android.csproj -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
dotnet msbuild SDK/AppCenterDistribute/Microsoft.AppCenter.Distribute.Android/Microsoft.AppCenter.Distribute.Android.csproj -property:UseSharedCompilation=false -property:Configuration=Release /restore -target:Build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v1 |