Skip to content

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Nov 15, 2024
1 parent 9390e89 commit e53b03b
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
solution: [
src/Skylark.sln,
src/Skylark.DNS.sln,
src/Skylark.Wing.sln,
# src/Skylark.Wing.sln,
src/Skylark.Uptime.sln,
src/Skylark.Standard.sln,
src/Skylark.Clipboard.sln,
Expand Down Expand Up @@ -57,43 +57,26 @@ jobs:
with:
fetch-depth: 0

# Install Visual Studio Build Tools with MSBuild
- name: Install Visual Studio Build Tools
run: |
choco install visualstudio2019buildtools --ignore-checksums -y
choco install visualstudio2019-workload-vctools --ignore-checksums -y
# Install .NET Core SDK
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
dotnet-quality: preview

# Set up MSBuild from Visual Studio
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
run: |
echo "Adding MSBuild to path"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin" >> $GITHUB_PATH
uses: microsoft/[email protected]

# Execute unit tests
# Execute all unit tests in the solution
- name: Execute Unit Tests
run: dotnet test ${{ matrix.solution }} -c ${{ matrix.configuration }} /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0649,CA1416,NU5104,NETSDK1138,SYSLIB0003
env:
NUGET_CONFIG_PATH: ./NuGet.Config

# Restore the Skylark project
- name: Restore Skylark
run: |
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" "${{ matrix.solution }}" /t:Restore /p:Configuration=$env:Configuration
env:
NUGET_CONFIG_PATH: ./NuGet.Config
Configuration: ${{ matrix.configuration }}

# Build the Skylark project
- name: Build Skylark
run: |
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" "${{ matrix.solution }}" /t:Build /p:Configuration=$env:Configuration
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the Skylark
run: msbuild ${{ matrix.solution }} /t:Restore /p:Configuration=$env:Configuration
env:
NUGET_CONFIG_PATH: ./NuGet.Config
Configuration: ${{ matrix.configuration }}

0 comments on commit e53b03b

Please sign in to comment.