Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 63 additions & 63 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
name: Build CheatEngine.Mcp

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v6.0.0
with:
dotnet-version: "10.0.403"
- name: Restore
run: dotnet restore CheatEngine.Mcp.slnx --locked-mode
- name: Build Debug
run: dotnet build CheatEngine.Mcp.slnx --no-restore
- name: Test Debug
run: dotnet test --solution CheatEngine.Mcp.slnx --no-restore --no-build --filter-not-trait Category=LiveQualification --filter-not-trait Category=NativeLua --fail-skips on
- name: Check formatting
run: |
dotnet format style CheatEngine.Mcp.slnx --no-restore --severity warn --verify-no-changes
dotnet format whitespace CheatEngine.Mcp.slnx --no-restore --verify-no-changes
- name: Build Release
run: dotnet build CheatEngine.Mcp.slnx -c Release --no-restore
- name: Test Release
run: dotnet test --solution CheatEngine.Mcp.slnx -c Release --no-restore --no-build --filter-not-trait Category=LiveQualification --filter-not-trait Category=NativeLua --fail-skips on
- name: Publish Debug distribution
run: pwsh -NoProfile -File eng/Publish.ps1 -Configuration Debug
- name: Publish Release distribution
run: pwsh -NoProfile -File eng/Publish.ps1 -Configuration Release
- name: Package release assets
run: pwsh -NoProfile -File eng/Release.ps1 -DistributionPath artifacts/dist/release
- name: Upload Debug distribution
uses: actions/upload-artifact@v7.0.2
with:
name: CheatEngine.Mcp-debug
path: artifacts/dist/debug/**
if-no-files-found: error
- name: Upload Release distribution
uses: actions/upload-artifact@v7.0.2
with:
name: CheatEngine.Mcp-release
path: artifacts/dist/release/**
if-no-files-found: error
- name: Upload release assets
uses: actions/upload-artifact@v7.0.2
with:
name: CheatEngine.Mcp-release-assets
path: artifacts/releases/**
if-no-files-found: error
name: Build CheatEngine.Mcp
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v6.1.0
with:
dotnet-version: "10.0.403"
- name: Restore
run: dotnet restore CheatEngine.Mcp.slnx --locked-mode
- name: Build Debug
run: dotnet build CheatEngine.Mcp.slnx --no-restore
- name: Test Debug
run: dotnet test --solution CheatEngine.Mcp.slnx --no-restore --no-build --filter-not-trait Category=LiveQualification --filter-not-trait Category=NativeLua --fail-skips on
- name: Check formatting
run: |
dotnet format style CheatEngine.Mcp.slnx --no-restore --severity warn --verify-no-changes
dotnet format whitespace CheatEngine.Mcp.slnx --no-restore --verify-no-changes
- name: Build Release
run: dotnet build CheatEngine.Mcp.slnx -c Release --no-restore
- name: Test Release
run: dotnet test --solution CheatEngine.Mcp.slnx -c Release --no-restore --no-build --filter-not-trait Category=LiveQualification --filter-not-trait Category=NativeLua --fail-skips on
- name: Publish Debug distribution
run: pwsh -NoProfile -File eng/Publish.ps1 -Configuration Debug
- name: Publish Release distribution
run: pwsh -NoProfile -File eng/Publish.ps1 -Configuration Release
- name: Package release assets
run: pwsh -NoProfile -File eng/Release.ps1 -DistributionPath artifacts/dist/release
- name: Upload Debug distribution
uses: actions/upload-artifact@v7.0.2
with:
name: CheatEngine.Mcp-debug
path: artifacts/dist/debug/**
if-no-files-found: error
- name: Upload Release distribution
uses: actions/upload-artifact@v7.0.2
with:
name: CheatEngine.Mcp-release
path: artifacts/dist/release/**
if-no-files-found: error
- name: Upload release assets
uses: actions/upload-artifact@v7.0.2
with:
name: CheatEngine.Mcp-release-assets
path: artifacts/releases/**
if-no-files-found: error
112 changes: 56 additions & 56 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
name: SonarQube
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
permissions:
contents: read
jobs:
build:
name: Build and analyze
# Dependabot PRs have no Actions secrets. Analyze the merged code on main.
if: github.event_name != 'pull_request' || github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: windows-latest
env:
SONAR_SCANNER_VERSION: "12.0.0"
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v6.0.0
with:
dotnet-version: "10.0.403"
- name: Cache SonarQube Cloud packages
uses: actions/cache@v6.1.0
with:
path: ~\.sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarQube Cloud scanner
id: cache-sonar-scanner
uses: actions/cache@v6.1.0
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}
- name: Install SonarQube Cloud scanner
shell: pwsh
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory -Force
dotnet tool update dotnet-sonarscanner --version "$env:SONAR_SCANNER_VERSION" --tool-path .\.sonar\scanner
- name: Build and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$PSNativeCommandUseErrorActionPreference = $true

.\.sonar\scanner\dotnet-sonarscanner begin /k:"shadowninex_ce-mcp" /o:"shadowninex" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet restore CheatEngine.Mcp.slnx --locked-mode
dotnet build CheatEngine.Mcp.slnx --no-restore --no-incremental
dotnet test --solution CheatEngine.Mcp.slnx --no-restore --no-build --filter-not-trait Category=LiveQualification --filter-not-trait Category=NativeLua --fail-skips on
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
name: SonarQube
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
permissions:
contents: read
jobs:
build:
name: Build and analyze
# Dependabot PRs have no Actions secrets. Analyze the merged code on main.
if: github.event_name != 'pull_request' || github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: windows-latest
env:
SONAR_SCANNER_VERSION: "12.0.0"
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v6.1.0
with:
dotnet-version: "10.0.403"
- name: Cache SonarQube Cloud packages
uses: actions/cache@v6.1.0
with:
path: ~\.sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarQube Cloud scanner
id: cache-sonar-scanner
uses: actions/cache@v6.1.0
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}
- name: Install SonarQube Cloud scanner
shell: pwsh
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory -Force
dotnet tool update dotnet-sonarscanner --version "$env:SONAR_SCANNER_VERSION" --tool-path .\.sonar\scanner
- name: Build and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$PSNativeCommandUseErrorActionPreference = $true
.\.sonar\scanner\dotnet-sonarscanner begin /k:"shadowninex_ce-mcp" /o:"shadowninex" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet restore CheatEngine.Mcp.slnx --locked-mode
dotnet build CheatEngine.Mcp.slnx --no-restore --no-incremental
dotnet test --solution CheatEngine.Mcp.slnx --no-restore --no-build --filter-not-trait Category=LiveQualification --filter-not-trait Category=NativeLua --fail-skips on
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
Loading