Skip to content

Commit 25791ca

Browse files
authored
Update build workflow (#51)
1 parent 62c0c33 commit 25791ca

File tree

4 files changed

+68
-67
lines changed

4 files changed

+68
-67
lines changed

.github/workflows/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Build SampleIntegration.sln and DynamoSamples.sln with .NET 8.0
2+
name: Build
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
steps:
14+
- name: Checkout DynamoSamples Repo
15+
uses: actions/checkout@v4
16+
with:
17+
path: DynamoSamples
18+
repository: DynamoDS/DynamoSamples
19+
- name: Setup dotnet
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '8.0.x'
23+
- name: Disable problem matcher
24+
run: echo "::remove-matcher owner=csc::"
25+
- name: Setup msbuild
26+
uses: microsoft/[email protected]
27+
- name: Install dependencies for SampleIntegration
28+
run: |
29+
dotnet restore ${{ github.workspace }}\DynamoSamples\src\SampleIntegration\SampleIntegration.sln /p:Configuration=Release --runtime=win-x64
30+
- name: Build SampleIntegration
31+
run: |
32+
msbuild ${{ github.workspace }}\DynamoSamples\src\SampleIntegration\SampleIntegration.sln /p:Configuration=Release
33+
- name: Look for Sample Integration
34+
run: |
35+
if (Test-Path -Path "${{ github.workspace }}\DynamoSamples\src\SampleIntegration\bin\Release\SampleIntegration.dll") {
36+
Write-Output "SampleIntegration.dll exists!"
37+
} else {
38+
Write-Error "SampleIntegration.dll was not found!"
39+
}
40+
- name: Install dependencies for DynamoSamples
41+
run: |
42+
dotnet restore ${{ github.workspace }}\DynamoSamples\src\DynamoSamples.sln /p:Configuration=Release --runtime=win-x64
43+
- name: Build DynamoSamples
44+
run: |
45+
msbuild ${{ github.workspace }}\DynamoSamples\src\DynamoSamples.sln /p:Configuration=Release
46+
- name: Look for Sample Packages
47+
run: |
48+
$paths = @(
49+
"${{ github.workspace }}\DynamoSamples\dynamo_linter\Sample Linter\bin\SampleLinter.dll",
50+
"${{ github.workspace }}\DynamoSamples\dynamo_package\Dynamo Samples\bin\SampleLibraryUI.dll",
51+
"${{ github.workspace }}\DynamoSamples\dynamo_package\Dynamo Samples\bin\SampleLibraryZeroTouch.dll",
52+
"${{ github.workspace }}\DynamoSamples\dynamo_viewExtension\Sample View Extension\bin\SampleViewExtension.dll"
53+
)
54+
55+
foreach ($path in $paths) {
56+
if (Test-Path -Path $path) {
57+
Write-Output "$path exists!"
58+
} else {
59+
Write-Error "$path was not found!"
60+
}
61+
}

.github/workflows/build_dynamo_samples_net8.0.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015
3+
Copyright (c) 2024
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
[![Build status](https://ci.appveyor.com/api/projects/status/qjdj92r86xb2tbq3?svg=true)](https://ci.appveyor.com/project/ikeough/dynamosamples)
1+
[![Build](https://github.com/DynamoDS/DynamoSamples/actions/workflows/build.yml/badge.svg)](https://github.com/DynamoDS/DynamoSamples/actions/workflows/build.yml)
22

33
![Image](https://raw.github.com/ikeough/Dynamo/master/doc/distrib/Images/dynamo_logo_dark.png)
44

55
# Dynamo Samples
6+
67
A collection of samples demonstrating how to develop libraries for Dynamo.
78

8-
These samples make use of the [Dynamo NuGet packages](https://www.nuget.org/packages?q=DynamoVisualProgramming). NuGet should take care of restoring these packages if they are not available on your system at build time.
9+
These samples make use of the [Dynamo NuGet packages](https://www.nuget.org/packages?q=DynamoVisualProgramming). NuGet should take care of restoring these packages if they are not available on your system at build time.
910

1011
# Building the Samples
1112

1213
## Requirements
14+
1315
- Visual Studio 2019
1416
- .NET Framework 4.8
1517

1618
## Instructions
19+
1720
- Clone the repository.
1821
- Choose a branch:
19-
- The master branch of Dynamo Samples corresponds to the master branch of Dynamo. To build against a specific version, choose that version's branch. I.e. 0.8.0, 0.9.0, etc.
22+
- The master branch of Dynamo Samples corresponds to the master branch of Dynamo. To build against a specific version, choose that version's branch. i.e. 0.8.0, 0.9.0, etc.
2023
- Open `DynamoSamples.sln` with Visual Studio.
2124
- Build using the `Debug/Any CPU` configuration.
2225
- The `dynamo_package` folder at the root of the repository will now have the built libraries. The `Dynamo Samples` folder in that directory can be copied directly to your Dynamo packages directory:`C:\Users\<you>\AppData\Roaming\Dynamo Core\<version>\packages`.

0 commit comments

Comments
 (0)