@@ -16,45 +16,61 @@ jobs:
16
16
with :
17
17
fetch-depth : 0
18
18
19
- # - name: ⚙️ Setup dotnet 7.0.x
20
- # uses: actions/setup-dotnet@v1
21
- # with:
22
- # dotnet-version: '7.0.x'
19
+ - name : ⚙️ Setup dotnet 7.0.x
20
+ uses : actions/setup-dotnet@v1
21
+ with :
22
+ dotnet-version : ' 7.0.x'
23
23
24
- # - name: 📐 Ensure nuget.org added as package source on Windows
25
- # run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config
26
- # continue-on-error: true
24
+ - name : 📐 Ensure nuget.org added as package source on Windows
25
+ run : dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config
26
+ continue-on-error : true
27
27
28
- # - name: 🔁 Restore packages
29
- # run: dotnet restore Atc.Installer-WithoutSetup.sln
28
+ - name : 🔁 Restore packages
29
+ run : dotnet restore Atc.Installer-WithoutSetup.sln
30
30
31
- # - name: 🛠️ Building library in release mode
32
- # run: dotnet build Atc.Installer-WithoutSetup.sln -c Release --no-restore
31
+ - name : 🛠️ Building library in release mode with MSBuild
32
+ run : |
33
+ $vsWhereExePath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
34
+ $vsInstallationPath = & $vsWhereExePath -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
35
+ $msBuildExePath = Join-Path $vsInstallationPath "MSBuild\Current\Bin\MSBuild.exe"
36
+ & $msBuildExePath Atc.Installer-WithoutSetup.sln -p:Configuration=Release -p:Platform="Any CPU" -m
37
+ shell : pwsh
33
38
34
- dotnet-test :
35
- runs-on : windows-latest
36
- needs :
37
- - dotnet-build
38
- steps :
39
- - name : 🛒 Checkout repository
40
- uses : actions/checkout@v2
41
- with :
42
- fetch-depth : 0
39
+ # dotnet-test:
40
+ # runs-on: windows-latest
41
+ # needs:
42
+ # - dotnet-build
43
+ # steps:
44
+ # - name: 🛒 Checkout repository
45
+ # uses: actions/checkout@v2
46
+ # with:
47
+ # fetch-depth: 0
43
48
44
- # - name: ⚙️ Setup dotnet 7.0.x
45
- # uses: actions/setup-dotnet@v1
46
- # with:
47
- # dotnet-version: '7.0.x'
49
+ # - name: ⚙️ Setup dotnet 7.0.x
50
+ # uses: actions/setup-dotnet@v1
51
+ # with:
52
+ # dotnet-version: '7.0.x'
48
53
49
- # - name: 📐 Ensure nuget.org added as package source on Windows
50
- # run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config
51
- # continue-on-error: true
54
+ # - name: 📐 Ensure nuget.org added as package source on Windows
55
+ # run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config
56
+ # continue-on-error: true
52
57
53
- # - name: 🔁 Restore packages
54
- # run: dotnet restore Atc.Installer-WithoutSetup.sln
58
+ # - name: 🔁 Restore packages
59
+ # run: dotnet restore Atc.Installer-WithoutSetup.sln
55
60
56
- # - name: 🛠️ Build
57
- # run: dotnet build Atc.Installer-WithoutSetup.sln -c Release --no-restore /p:UseSourceLink=true
61
+ # - name: 🛠️ Building library in release mode with MSBuild
62
+ # run: |
63
+ # $vsWhereExePath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
64
+ # $vsInstallationPath = & $vsWhereExePath -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
65
+ # $msBuildExePath = Join-Path $vsInstallationPath "MSBuild\Current\Bin\MSBuild.exe"
66
+ # & $msBuildExePath Atc.Installer-WithoutSetup.sln -p:Configuration=Release -p:Platform="Any CPU" -m
67
+ # shell: pwsh
58
68
59
- # - name: 🧪 Run unit tests
60
- # run: dotnet test Atc.Installer-WithoutSetup.sln -c Release --no-build --filter "Category!=Integration"
69
+ # - name: 🧪 Run unit tests with MSBuild
70
+ # run: |
71
+ # $vsWhereExePath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
72
+ # $vsInstallationPath = & $vsWhereExePath -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
73
+ # $vstestPath = Join-Path $vsInstallationPath "Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
74
+ # $testAssemblies = (Get-ChildItem -Recurse -Filter *.Test.dll).FullName
75
+ # & $vstestPath $testAssemblies
76
+ # shell: pwsh
0 commit comments