-
Notifications
You must be signed in to change notification settings - Fork 57
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
4 changed files
with
68 additions
and
67 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Build SampleIntegration.sln and DynamoSamples.sln with .NET 8.0 | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout DynamoSamples Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: DynamoSamples | ||
repository: DynamoDS/DynamoSamples | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Disable problem matcher | ||
run: echo "::remove-matcher owner=csc::" | ||
- name: Setup msbuild | ||
uses: microsoft/[email protected] | ||
- name: Install dependencies for SampleIntegration | ||
run: | | ||
dotnet restore ${{ github.workspace }}\DynamoSamples\src\SampleIntegration\SampleIntegration.sln /p:Configuration=Release --runtime=win-x64 | ||
- name: Build SampleIntegration | ||
run: | | ||
msbuild ${{ github.workspace }}\DynamoSamples\src\SampleIntegration\SampleIntegration.sln /p:Configuration=Release | ||
- name: Look for Sample Integration | ||
run: | | ||
if (Test-Path -Path "${{ github.workspace }}\DynamoSamples\src\SampleIntegration\bin\Release\SampleIntegration.dll") { | ||
Write-Output "SampleIntegration.dll exists!" | ||
} else { | ||
Write-Error "SampleIntegration.dll was not found!" | ||
} | ||
- name: Install dependencies for DynamoSamples | ||
run: | | ||
dotnet restore ${{ github.workspace }}\DynamoSamples\src\DynamoSamples.sln /p:Configuration=Release --runtime=win-x64 | ||
- name: Build DynamoSamples | ||
run: | | ||
msbuild ${{ github.workspace }}\DynamoSamples\src\DynamoSamples.sln /p:Configuration=Release | ||
- name: Look for Sample Packages | ||
run: | | ||
$paths = @( | ||
"${{ github.workspace }}\DynamoSamples\dynamo_linter\Sample Linter\bin\SampleLinter.dll", | ||
"${{ github.workspace }}\DynamoSamples\dynamo_package\Dynamo Samples\bin\SampleLibraryUI.dll", | ||
"${{ github.workspace }}\DynamoSamples\dynamo_package\Dynamo Samples\bin\SampleLibraryZeroTouch.dll", | ||
"${{ github.workspace }}\DynamoSamples\dynamo_viewExtension\Sample View Extension\bin\SampleViewExtension.dll" | ||
) | ||
foreach ($path in $paths) { | ||
if (Test-Path -Path $path) { | ||
Write-Output "$path exists!" | ||
} else { | ||
Write-Error "$path was not found!" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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