Skip to content

Commit

Permalink
Moving to dotnet build instead of build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
plave0 committed Oct 4, 2024
1 parent 13c33f4 commit 18ca60a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
dotnet-version: '9.0.x'
- name: Build Everything
shell: powershell
run: ./build.ps1
run: dotnet build code.sln
- name: Run Tests
run: dotnet test code.sln --configuration release --nologo --settings test\unittests\default.runsettings --results-directory ${{ env.TEST_RESULT_DIR }} --logger trx
- name: upload artifacts
Expand Down
6 changes: 3 additions & 3 deletions buildAll.proj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
<Message Text="SUCCESS! Generated binaries and packages are dropped at $(CurrentDir)drop\$(Configuration)" Importance="High"/>
</Target>

<Target Name="BuildAll" DependsOnTargets="RestorePackagesProd;BuildProd;CopyProdBinaries;GenerateNugetPackages">
<Target Name="BuildAll" DependsOnTargets="RestorePackagesProd;RestorePackagesTest;BuildProd;BuildTest;CopyProdBinaries;GenerateNugetPackages">
<Message Text="SUCCESS! Generated binaries and packages are dropped at $(CurrentDir)drop\$(Configuration)" Importance="High"/>
</Target>

<!-- Builds code, this target doesn't generates nuget packages. -->
<Target Name="BuildCode" DependsOnTargets="RestorePackagesProd;CleanAll;BuildProd;CopyProdBinaries">
<Target Name="BuildCode" DependsOnTargets="RestorePackagesProd;RestorePackagesTest;CleanAll;BuildProd;BuildTest;CopyProdBinaries">
<Message Text="SUCCESS! Generated binaries are dropped at $(CurrentDir)drop\$(Configuration)" Importance="High"/>
</Target>

Expand Down Expand Up @@ -77,7 +77,7 @@
<RemoveDir Directories="$(CurrentDir)\drop"/>

<Message Text="Cleaning all projects ..."/>
<CallTarget Targets="CleanProd" />
<CallTarget Targets="CleanProd;CleanTest" />
</Target>

<Target Name="CleanProd">
Expand Down

0 comments on commit 18ca60a

Please sign in to comment.