Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
87e6f1b
Create dotnet-desktop.yml
romantymoshyk Aug 4, 2025
502df74
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
fd91312
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
ed4fb0b
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
64d0415
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
a8668db
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
0814fea
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
072a6f4
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
422f792
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
e13fe2b
Update codeql-analysis.yml
romantymoshyk Aug 4, 2025
209cf0f
Update codeql-analysis.yml
romantymoshyk Aug 4, 2025
703839c
Update codeql-analysis.yml
romantymoshyk Aug 4, 2025
fed7d05
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
eff46a4
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
039f046
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
dad3367
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
3ed3199
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
86495f1
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
9c05296
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
7bf50de
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
5cda75d
Update codeql-analysis.yml
romantymoshyk Aug 4, 2025
2c9eecc
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
cd66970
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
9baa7f4
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
a368fc6
Update codeql-analysis.yml
romantymoshyk Aug 4, 2025
2420e0b
Update dotnet-desktop.yml
romantymoshyk Aug 4, 2025
3244bf8
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
ff7c1dc
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
52f6b6d
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
5731985
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
cd2e12e
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
35ed4bb
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
730ffe1
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
d10e6d8
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
6bc7732
Update dotnet-desktop.yml
romantymoshyk Aug 6, 2025
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
30 changes: 15 additions & 15 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ permissions:
jobs:
analyze:
name: Analyze
runs-on: windows-2019
runs-on: windows-latest

strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
#steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: csharp
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v3
# with:
# languages: csharp

- name: Autobuild
uses: github/codeql-action/autobuild@v1
# - name: Autobuild
# uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v3
167 changes: 167 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow will build, test, sign and package a WPF or Windows Forms desktop application
# built on .NET Core.
# To learn how to migrate your existing application to .NET Core,
# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework
#
# To configure this workflow:
#
# 1. Configure environment variables
# GitHub sets default environment variables for every workflow run.
# Replace the variables relative to your project in the "env" section below.
#
# For more information on GitHub Actions, refer to https://github.com/features/actions
# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications,
# refer to https://github.com/microsoft/github-actions-for-desktop-apps

name: Build .NET

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

strategy:
matrix:
configuration: [Release]

runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Configuration: Release
SolutionPath: Confuser2.sln

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: |
~/.nuget/packages
# !~/.nuget/packages/unwanted_package # Optional: Exclude specific packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: Cache .NET installers
uses: actions/cache@v4
with:
path: |
public/
key: ${{ runner.os }}-dotnet
restore-keys: |
${{ runner.os }}-dotnetdevpack-


- name: Check if exists .NET 4.6.1 installer
id: exists_NDP461_DevPack
shell: pwsh # Use PowerShell for Windows
run: |
$filePath = "public/NDP461-DevPack-KB3105179-ENU.exe"
if (Test-Path $filePath) {
echo "file_exists=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
} else {
echo "file_exists=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
}

- name: Check if exists.NET 3.5 installer
id: exists_dotnetfx35
shell: pwsh # Use PowerShell for Windows
run: |
$filePath = "public/dotnetfx35.exe"
if (Test-Path $filePath) {
echo "file_exists=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
} else {
echo "file_exists=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
}

- name: Download .NET 4.6.1 targeting pack
uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9
with:
url: "https://download.microsoft.com/download/F/1/D/F1DEB8DB-D277-4EF9-9F48-3A65D4D8F965/NDP461-DevPack-KB3105179-ENU.exe"
target: public/
if: ${{ steps.exists_NDP461_DevPack.outputs.file_exists == 'false' }}

# - name: Download .NET 4.6.2 targeting pack
# uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9
# with:
# url: "https://download.microsoft.com/download/e/e/c/eec79116-8305-4bd0-aa83-27610987eec6/NDP462-DevPack-KB3151934-ENU.exe"
# target: public/

- name: Download .NET 3.5 targeting pack
uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9
with:
url: "https://download.visualstudio.microsoft.com/download/pr/b635098a-2d1d-4142-bef6-d237545123cb/2651b87007440a15209cac29634a4e45/dotnetfx35.exe"
target: public/
if: ${{ steps.exists_dotnetfx35.outputs.file_exists == 'false' }}

- name: Install targeting pack .NET 4.6.1
shell: cmd
working-directory: public
run: NDP461-DevPack-KB3105179-ENU.exe /q

# - name: Install targeting pack .NET 4.6.2
# shell: cmd
# working-directory: public
# run: NDP462-DevPack-KB3151934-ENU.exe /q

- name: Install targeting pack .NET 3.5
shell: cmd
working-directory: public
run: dotnetfx35.exe /q

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2

# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild ${{ env.SolutionPath }} /t:Restore /p:Configuration=${{ env.Configuration }} /p:Platform=x64 /v:m
env:
Configuration: Release

- name: Build
run: msbuild ${{ env.SolutionPath }} /p:Configuration=${{ env.Configuration }} /p:Platform=x64 /v:m

# Upload the package: https://github.com/marketplace/actions/upload-a-build-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ConfuserEx.CLI
path: |
Confuser.CLI\bin\${{ env.Configuration }}\net461
!Confuser.CLI\bin\${{ env.Configuration }}\net461\*.pdb
!Confuser.CLI\bin\${{ env.Configuration }}\net461\*.xml


# Upload the package: https://github.com/marketplace/actions/upload-a-build-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ConfuserEx
path: |
ConfuserEx\bin\${{ env.Configuration }}\net461
!ConfuserEx\bin\${{ env.Configuration }}\net461\*.pdb
!ConfuserEx\bin\${{ env.Configuration }}\net461\*.xml

Loading