-
Notifications
You must be signed in to change notification settings - Fork 0
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
11 changed files
with
189 additions
and
79 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,20 @@ | ||
name: Greeting | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
message: | ||
description: Message | ||
default: World | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
greeting: | ||
name: Greeting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Greeting | ||
run: echo "Hello, $MESSAGE" | ||
env: | ||
MESSAGE: ${{ inputs.message }} |
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,26 @@ | ||
name: Greeting (Action) | ||
|
||
on: | ||
push: | ||
paths: | ||
- actions/greeting/action.yml | ||
- .github/workflows/greeting_action.yml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
greeting: | ||
name: Greeting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Greeting | ||
id: greeting | ||
uses: DynamoDS/workflows/actions/greeting@master | ||
with: | ||
message: World | ||
- name: Random number | ||
run: echo "$RANDOM_NUMBER" | ||
shell: bash | ||
env: | ||
RANDOM_NUMBER: ${{ steps.greeting.outputs.number }} | ||
- name: Date | ||
run: date |
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,15 @@ | ||
name: Greeting (Workflow) | ||
|
||
on: | ||
push: | ||
paths: | ||
- .github/workflows/greeting.yml | ||
- .github/workflows/greeting_workflow.yml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
greeting: | ||
name: Greeting | ||
uses: DynamoDS/workflows/.github/workflows/greeting.yml@master | ||
with: | ||
message: World |
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,55 @@ | ||
name: MSBuild | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runner: | ||
description: Runner | ||
default: windows-latest | ||
required: false | ||
type: string | ||
repository: | ||
description: Repository | ||
required: true | ||
type: string | ||
dotnet_version: | ||
description: Dotnet Version | ||
default: 8.0.x | ||
required: false | ||
type: string | ||
solution_path: | ||
description: Solution Path | ||
required: true | ||
type: string | ||
build_configuration: | ||
description: Build Configuration | ||
default: Release | ||
required: false | ||
type: string | ||
runtime_identifier: | ||
description: Runtime Identifier | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ inputs.runner }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ inputs.repository }} | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ inputs.dotnet_version }} | ||
- name: Disable problem matcher | ||
run: Write-Output "::remove-matcher owner=csc::" | ||
- name: Setup msbuild | ||
uses: microsoft/setup-msbuild@v2 | ||
- name: Restore dependencies | ||
run: | | ||
dotnet restore ${{ github.workspace }}\${{ inputs.solution_path }} /p:Configuration=${{ inputs.build_configuration }} --runtime=${{ inputs.runtime_identifier }} | ||
- name: Build Solution | ||
run: | | ||
msbuild ${{ github.workspace }}\${{ inputs.solution_path }} /p:Configuration=${{ inputs.build_configuration }} |
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,30 @@ | ||
name: MSBuild (Action) | ||
|
||
on: | ||
push: | ||
paths: | ||
- actions/msbuild/action.yml | ||
- .github/workflows/msbuild_action.yml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
msbuild: | ||
name: MSBuild | ||
runs-on: windows-latest | ||
steps: | ||
- name: MSBuild | ||
uses: DynamoDS/workflows/actions/msbuild@master | ||
with: | ||
repository: DynamoDS/Dynamo | ||
dotnet_version: 8.0.x | ||
solution_path: src\Dynamo.All.sln | ||
build_configuration: Release | ||
runtime_identifier: win-x64 | ||
- name: Look for DynamoCLI.exe | ||
run: | | ||
Write-Output "***Locating DynamoCLI.exe!***" | ||
if (Test-Path -Path "${{ github.workspace }}/bin/AnyCPU/Release/DynamoCLI.exe") { | ||
Write-Output "DynamoCLI.exe exists!" | ||
} else { | ||
Write-Error "DynamoCLI.exe 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: MSBuild (Workflow) | ||
|
||
on: | ||
push: | ||
paths: | ||
- .github/workflows/msbuild.yml | ||
- .github/workflows/msbuild_workflow.yml | ||
workflow_dispatch: | ||
|
||
jobs: | ||
msbuild: | ||
name: MSBuild | ||
uses: DynamoDS/workflows/.github/workflows/msbuild.yml@master | ||
with: | ||
runner: windows-latest | ||
repository: DynamoDS/Dynamo | ||
dotnet_version: 8.0.x | ||
solution_path: src\Dynamo.All.sln | ||
build_configuration: Release | ||
runtime_identifier: win-x64 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Composite Actions | ||
|
||
- [greeting](./greeting) | ||
- [msbuild](./msbuild) |
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,9 @@ | ||
# Reusable Workflows | ||
|
||
> [!IMPORTANT] | ||
> Reusable Workflow files must be placed in .github/workflows folder. See: [Calling a reusable workflow](https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow) | ||
Files here are symlinks to the files in [.github/workflows](./.github/workflows) folder | ||
|
||
- [greeting](greeting.yml) | ||
- [msbuild](msbuild.yml) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.github/workflows/greeting.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.github/workflows/msbuild.yml |