From fc300465f8365e591946c79f586e73bcb8b2ff8a Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 20 Jun 2024 11:51:28 -0400 Subject: [PATCH] Add nuget packing for processors and contexts --- .github/workflows/build_nupkg.yml | 49 +++++++++++++++++++++++++++++++ CHANGELIST.md | 4 +++ publish-nix.sh | 4 +++ publish-win.ps1 | 4 +++ 4 files changed, 61 insertions(+) create mode 100644 .github/workflows/build_nupkg.yml diff --git a/.github/workflows/build_nupkg.yml b/.github/workflows/build_nupkg.yml new file mode 100644 index 00000000..8bf0aa19 --- /dev/null +++ b/.github/workflows/build_nupkg.yml @@ -0,0 +1,49 @@ +name: Nuget Pack + +on: + push: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Pack + run: dotnet pack + + - name: Upload Execution Contexts package + uses: actions/upload-artifact@v4 + with: + name: 'Nuget Package' + path: 'MPF.ExecutionContexts/bin/Release/*.nupkg' + + - name: Upload Processors package + uses: actions/upload-artifact@v4 + with: + name: 'Nuget Package' + path: 'MPF.Processors/bin/Release/*.nupkg' + + - name: Upload to rolling + uses: ncipollo/release-action@v1.14.0 + with: + allowUpdates: True + artifacts: 'BinaryObjectScanner/bin/Release/*.nupkg' + body: 'Last built commit: ${{ github.sha }}' + name: 'Rolling Release' + prerelease: True + replacesArtifacts: True + tag: "rolling" + updateOnlyUnreleased: True diff --git a/CHANGELIST.md b/CHANGELIST.md index 819c5f07..ebfc833e 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -1,3 +1,7 @@ +### WIP (xxxx-xx-xx) + +- Add nuget packing for processors and contexts + ### 3.2.0 (2024-06-20) - Create currently-unused processors diff --git a/publish-nix.sh b/publish-nix.sh index c855c3a2..cc2473b2 100755 --- a/publish-nix.sh +++ b/publish-nix.sh @@ -67,6 +67,10 @@ if [ $NO_BUILD = false ]; then echo "Restoring Nuget packages" dotnet restore + # Create Nuget Packages + dotnet pack MPF.ExecutionContexts/MPF.ExecutionContexts.csproj --output $BUILD_FOLDER + dotnet pack MPF.Processors/MPF.Processors.csproj --output $BUILD_FOLDER + # Build UI for FRAMEWORK in "${UI_FRAMEWORKS[@]}"; do for RUNTIME in "${UI_RUNTIMES[@]}"; do diff --git a/publish-win.ps1 b/publish-win.ps1 index 4f55c282..62341e33 100644 --- a/publish-win.ps1 +++ b/publish-win.ps1 @@ -58,6 +58,10 @@ if (!$NO_BUILD.IsPresent) { Write-Host "Restoring Nuget packages" dotnet restore + # Create Nuget Packages + dotnet pack MPF.ExecutionContexts/MPF.ExecutionContexts.csproj --output $BUILD_FOLDER + dotnet pack MPF.Processors/MPF.Processors.csproj --output $BUILD_FOLDER + # Build UI foreach ($FRAMEWORK in $UI_FRAMEWORKS) { foreach ($RUNTIME in $UI_RUNTIMES) {