-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
47 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,27 +1,30 @@ | ||
# Build PackageManager Client using latest VS and DotNET | ||
# Build PackageManager Client using msbuild | ||
name: PackageManagerClient-VS2022Build | ||
on: [push] | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout PackageManagerClient Repo | ||
uses: actions/checkout@v2 | ||
with: | ||
path: PackageManagerClient | ||
repository: DynamoDS/PackageManagerClient | ||
- name: Setup Nuget.exe to use on VM | ||
uses: nuget/setup-nuget@v1 | ||
- name: Nuget Restore in PackageManagerClient solution | ||
run: nuget restore $Env:GITHUB_WORKSPACE\PackageManagerClient\src\GregClient.sln | ||
- name: Build PackageManagerClient with MSBuild | ||
run: | | ||
echo "***Continue with the build, Good luck developer!***" | ||
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64" | ||
.\MSBuild.exe $Env:GITHUB_WORKSPACE\PackageManagerClient\src\GregClient.sln | ||
# look for PackageManagerClient | ||
- name: Navigate to PackageManagerClient Folder | ||
run: | | ||
cd "$Env:GITHUB_WORKSPACE\PackageManagerClient\bin\Debug" | ||
echo "***Locating PackageManagerClient!***" | ||
test ".\Greg.dll" && echo "PackageManagerClient exists!" | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout PackageManagerClient Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: PackageManagerClient | ||
repository: DynamoDS/PackageManagerClient | ||
- name: Setup nuget | ||
uses: nuget/[email protected] | ||
- name: Setup msbuild | ||
uses: microsoft/[email protected] | ||
- name: Nuget Restore PackageManagerClient solution | ||
run: nuget restore ${{ github.workspace }}\PackageManagerClient\src\GregClient.sln | ||
- name: Build PackageManagerClient with MSBuild | ||
run: | | ||
Write-Output "***Continue with the build, Good luck developer!***" | ||
msbuild ${{ github.workspace }}\PackageManagerClient\src\GregClient.sln | ||
- name: Look for PackageManagerClient | ||
run: | | ||
Write-Output "***Locating PackageManagerClient!***" | ||
if (Test-Path -Path "${{ github.workspace }}\PackageManagerClient\bin\Debug\net6.0\Greg.dll") { | ||
Write-Output "PackageManagerClient exists!" | ||
} else { | ||
Write-Error "PackageManagerClient was not found!" | ||
} |
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