Added a project to search for the encryption key inside games code #67
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: 🛠️ .NET Desktop | |
on: | |
push: | |
paths-ignore: [HexEditorStructures/**, Images/**, mbedTLS_AES/**, ObtainEncryptionKey/**, Tests/**, "*.*"] | |
pull_request: | |
paths-ignore: [HexEditorStructures/**, Images/**, mbedTLS_AES/**, ObtainEncryptionKey/**, Tests/**, "*.*"] | |
# Stop the same workflow actions | |
concurrency: | |
group: ${{github.workflow}}-${{github.event.pull_request.number || github.run_id}} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
configuration: [Debug, Release] | |
runs-on: windows-latest | |
env: | |
Artifact_Name: GodotPCKExplorer | |
Project_Name: GodotPCKExplorer.UI | |
MSBuild_Project_Name: Explorer\GodotPCKExplorer_UI | |
Solution_Path: GodotPCKExplorer.sln | |
SDK_Name: net6.0-windows | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1.3.1 | |
# Add nuget to cache | |
- name: Setup Cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget | |
# Restore the application to populate the obj folder with RuntimeIdentifiers | |
- name: Restore nuget packages | |
run: msbuild ${{ env.Solution_Path }} /t:Restore /p:Configuration=${{ matrix.configuration }} | |
- name: Build solution | |
shell: powershell | |
run: msbuild ${{ env.Solution_Path }} /t:${{ env.MSBuild_Project_Name }} /p:Configuration=${{ matrix.configuration }} /p:Platform="x64" /m:4 | |
- name: Prepare artifacts | |
if: matrix.configuration == 'Release' | |
shell: powershell | |
run: | | |
Get-ChildItem "${{ env.Project_Name }}/bin/x64/${{ matrix.configuration }}/" -Directory | ForEach-Object { | |
Get-ChildItem $_.FullName | Where-Object { ('.pdb', '.xml').Contains($_.Extension) } | Remove-Item -Force | |
} | |
- name: Upload build artifacts | |
if: matrix.configuration == 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.Artifact_Name }} | |
path: ${{ env.Project_Name }}/bin/x64/${{ matrix.configuration }}/${{ env.SDK_Name }} | |
- name: Upload build artifacts | |
if: matrix.configuration != 'Release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.Artifact_Name }}_${{ matrix.configuration }} | |
path: ${{ env.Project_Name }}/bin/${{ matrix.configuration }}/${{ env.SDK_Name }} |