-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove x86 test before GHA supports x86 SDK installation.
dotnet run --project on GHA has to specify .csproj path.
- Loading branch information
1 parent
d40e261
commit 63b3cd7
Showing
8 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
. $PSScriptRoot\Variables.ps1 | ||
pushd $SolutionDir | ||
Push-Location $SolutionDir | ||
|
||
$Env:Platform = '' | ||
foreach ($project in $Projects) | ||
{ | ||
dotnet build --no-restore -c Release .\$project\$project.csproj | ||
if (!$?) { throw } | ||
} | ||
|
||
$Env:Platform = 'x64' | ||
foreach ($project in $Projects) | ||
{ | ||
dotnet build --no-restore -c Release .\$project\$project.csproj | ||
if (!$?) { throw } | ||
} | ||
|
||
popd | ||
Pop-Location |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
. $PSScriptRoot\Variables.ps1 | ||
pushd $SolutionDir | ||
Push-Location $SolutionDir | ||
foreach ($project in $Projects) | ||
{ | ||
dotnet restore .\$project\$project.csproj | ||
if (!$?) { throw } | ||
} | ||
|
||
popd | ||
Pop-Location |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
. $PSScriptRoot\Variables.ps1 | ||
pushd $SolutionDir | ||
$Env:Platform = '' | ||
foreach ($project in $Tests) | ||
{ | ||
dotnet test -c Debug -a x86 .\$project\$project.csproj | ||
dotnet test -c Release -a x86 .\$project\$project.csproj | ||
} | ||
Push-Location $SolutionDir | ||
|
||
# the GHA setup-dotnet action currently not support specify architecture, and x86 SDK is not installed. | ||
# $Env:Platform = '' | ||
# foreach ($project in $Tests) | ||
# { | ||
# dotnet test -c Debug -a x86 .\$project\$project.csproj | ||
# dotnet test -c Release -a x86 .\$project\$project.csproj | ||
# } | ||
|
||
$Env:Platform = 'x64' | ||
foreach ($project in $Tests) | ||
{ | ||
dotnet test -c Debug -a x64 .\$project\$project.csproj | ||
if (!$?) { throw } | ||
dotnet test -c Release -a x64 .\$project\$project.csproj | ||
if (!$?) { throw } | ||
} | ||
|
||
popd | ||
Pop-Location |