-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update build workflow * update * Update DynamoCLI check in linux
- Loading branch information
Showing
3 changed files
with
76 additions
and
71 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
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 |
---|---|---|
|
@@ -8,44 +8,48 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Dynamo Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: Dynamo | ||
repository: DynamoDS/Dynamo | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '6.0.x' | ||
- name: Disable problem matcher | ||
run: echo "::remove-matcher owner=csc::" | ||
|
||
- name: Install dependencies for windows runtime | ||
run: | | ||
dotnet restore $Env:GITHUB_WORKSPACE\Dynamo\src\DynamoCore.sln /p:Configuration=Release --runtime=win-x64 | ||
- name: Build Dynamo with MSBuild for Windows | ||
run: | | ||
echo "***Continue with the build, Good luck developer!***" | ||
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | ||
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Dynamo\src\DynamoCore.sln /p:Configuration=Release | ||
# look for Dynamo | ||
- name: Navigate to Dynamo Windows Folder | ||
run: | | ||
cd "$Env:GITHUB_WORKSPACE\Dynamo\bin\AnyCPU\Release" | ||
echo "***Locating DynamoCLI for Windows!***" | ||
test ".\DynamoCLI.exe" && echo "DynamoCLI exists!" | ||
- name: Install dependencies for linux runtime | ||
run: dotnet restore $Env:GITHUB_WORKSPACE\Dynamo\src\DynamoCore.sln -p:Platform=NET60_Linux --runtime=linux-x64 | ||
- name: Build Dynamo with MSBuild for Linux | ||
run: | | ||
echo "***Continue with the build, Good luck developer!***" | ||
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\" | ||
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Dynamo\src\DynamoCore.sln /p:Configuration=Release /p:Platform=NET60_Linux | ||
- name: Navigate to Dynamo Linux Folder | ||
run: | | ||
cd "$Env:GITHUB_WORKSPACE\Dynamo\bin\NET60_Linux\Release" | ||
echo "***Locating DynamoCLI for Linux!***" | ||
test ".\DynamoCLI.exe" && echo "DynamoCLI exists!" | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Dynamo Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: Dynamo | ||
repository: DynamoDS/Dynamo | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '6.0.x' | ||
- name: Disable problem matcher | ||
run: Write-Output "::remove-matcher owner=csc::" | ||
- name: Setup msbuild | ||
uses: microsoft/[email protected] | ||
- name: Install dependencies for windows runtime | ||
run: | | ||
dotnet restore ${{ github.workspace }}\Dynamo\src\DynamoCore.sln /p:Configuration=Release --runtime=win-x64 | ||
- name: Build Dynamo with MSBuild for Windows | ||
run: | | ||
Write-Output "***Continue with the build, Good luck developer!***" | ||
msbuild ${{ github.workspace }}\Dynamo\src\DynamoCore.sln /p:Configuration=Release | ||
- name: Look for DynamoCLI.exe | ||
run: | | ||
Write-Output "***Locating DynamoCLI.exe!***" | ||
if (Test-Path -Path "${{ github.workspace }}\Dynamo\bin\AnyCPU\Release\DynamoCLI.exe") { | ||
Write-Output "DynamoCLI.exe exists!" | ||
} else { | ||
Write-Error "DynamoCLI.exe was not found!" | ||
} | ||
- name: Install dependencies for linux runtime | ||
run: dotnet restore ${{ github.workspace }}\Dynamo\src\DynamoCore.sln -p:Platform=NET60_Linux --runtime=linux-x64 | ||
- name: Build Dynamo with MSBuild for Linux | ||
run: | | ||
Write-Output "***Continue with the build, Good luck developer!***" | ||
msbuild ${{ github.workspace }}\Dynamo\src\DynamoCore.sln /p:Configuration=Release /p:Platform=NET60_Linux | ||
- name: Look for DynamoCLI | ||
run: | | ||
Write-Output "***Locating DynamoCLI for Linux!***" | ||
if (Test-Path -Path "${{ github.workspace }}\Dynamo\bin\NET60_Linux\Release\DynamoCLI") { | ||
Write-Output "DynamoCLI exists!" | ||
} else { | ||
Write-Error "DynamoCLI was not found!" | ||
} |