Skip to content

Commit

Permalink
CI: update paths to ScottPlot4 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Mar 5, 2022
1 parent 81e5aba commit c868dce
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci-ScottPlot-v4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
push:
paths:
- "src/**"
- "src/ScottPlot4/**"
pull_request:
paths:
- "src/**"
- "src/ScottPlot4/**"

jobs:
format:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: βœ’οΈ Set up dotnet-format
run: dotnet tool install -g dotnet-format
- name: 🧐 Check Code Format
working-directory: src
working-directory: src/ScottPlot4
run: dotnet-format --check

test:
Expand Down Expand Up @@ -51,13 +51,13 @@ jobs:
with:
dotnet-version: "6.0.x"
- name: 🚚 Restore
working-directory: src/tests
working-directory: src/ScottPlot4/ScottPlot.Tests
run: dotnet restore
- name: πŸ› οΈ Build
working-directory: src/tests
working-directory: src/ScottPlot4/ScottPlot.Tests
run: dotnet build --configuration Release
- name: πŸ§ͺ Test
working-directory: src/tests
working-directory: src/ScottPlot4/ScottPlot.Tests
run: dotnet test --configuration Release

package:
Expand All @@ -73,33 +73,33 @@ jobs:

- name: πŸ“¦ Package ScottPlot
run: |
dotnet restore src/ScottPlot/ScottPlot.csproj
dotnet build src/ScottPlot/ScottPlot.csproj --configuration Release
dotnet pack src/ScottPlot/ScottPlot.csproj --configuration Release
dotnet restore src/ScottPlot4/ScottPlot/ScottPlot.csproj
dotnet build src/ScottPlot4/ScottPlot/ScottPlot.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot/ScottPlot.csproj --configuration Release
- name: πŸ“¦ Package ScottPlot.WinForms
run: |
dotnet restore src/controls/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj
dotnet build src/controls/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
dotnet restore src/ScottPlot4/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
- name: πŸ“¦ Package ScottPlot.WPF
run: |
dotnet restore src/controls/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj
dotnet build src/controls/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
dotnet restore src/ScottPlot4/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
- name: πŸ“¦ Package ScottPlot.Avalonia
run: |
dotnet restore src/controls/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj
dotnet build src/controls/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
dotnet restore src/ScottPlot4/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
- name: πŸ“¦ Package ScottPlot.Eto
run: |
dotnet restore src/controls/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj
dotnet build src/controls/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
dotnet restore src/ScottPlot4/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
build:
runs-on: windows-latest
Expand All @@ -115,8 +115,8 @@ jobs:
dotnet-version: "6.0.x"
include-prerelease: true
- name: 🚚 Restore
working-directory: src
working-directory: src/ScottPlot4
run: dotnet restore
- name: 🐌 MSBuild
working-directory: src
working-directory: src/ScottPlot4
run: msbuild -property:Configuration=Release -verbosity:minimal
60 changes: 30 additions & 30 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,52 +23,52 @@ jobs:

- name: πŸš€ Publish ScottPlot
run: |
dotnet restore src/ScottPlot/ScottPlot.csproj
dotnet build src/ScottPlot/ScottPlot.csproj --configuration Release
dotnet pack src/ScottPlot/ScottPlot.csproj --configuration Release
nuget push "src\ScottPlot\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
dotnet restore src/ScottPlot4/ScottPlot/ScottPlot.csproj
dotnet build src/ScottPlot4/ScottPlot/ScottPlot.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot/ScottPlot.csproj --configuration Release
nuget push "src\ScottPlot4\ScottPlot\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
- name: πŸš€ Publish ScottPlot.WinForms
run: |
dotnet restore src/controls/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj
dotnet build src/controls/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
nuget push "src\controls\ScottPlot.WinForms\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
dotnet restore src/ScottPlot4/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.WinForms/ScottPlot.WinForms.NUGET.csproj --configuration Release
nuget push "src\ScottPlot4\ScottPlot.WinForms\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
- name: πŸš€ Publish ScottPlot.WPF
run: |
dotnet restore src/controls/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj
dotnet build src/controls/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
nuget push "src\controls\ScottPlot.WPF\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
dotnet restore src/ScottPlot4/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.WPF/ScottPlot.WPF.NUGET.csproj --configuration Release
nuget push "src\ScottPlot4\ScottPlot.WPF\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
- name: πŸš€ Publish ScottPlot.Avalonia
run: |
dotnet restore src/controls/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj
dotnet build src/controls/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
nuget push "src\controls\ScottPlot.Avalonia\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
dotnet restore src/ScottPlot4/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.Avalonia/ScottPlot.Avalonia.NUGET.csproj --configuration Release
nuget push "src\ScottPlot4\ScottPlot.Avalonia\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
- name: πŸš€ Publish ScottPlot.Eto
run: |
dotnet restore src/controls/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj
dotnet build src/controls/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
dotnet pack src/controls/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
nuget push "src\controls\ScottPlot.Eto\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
dotnet restore src/ScottPlot4/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj
dotnet build src/ScottPlot4/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
dotnet pack src/ScottPlot4/ScottPlot.Eto/ScottPlot.Eto.NUGET.csproj --configuration Release
nuget push "src\ScottPlot4\ScottPlot.Eto\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
- name: πŸ’Ύ Store Packages
uses: actions/upload-artifact@v2
with:
name: ScottPlot-Packages
retention-days: 1
path: |
src/ScottPlot/bin/Release/*.nupkg
src/ScottPlot/bin/Release/*.snupkg
src/controls/ScottPlot.WinForms/bin/Release/*.nupkg
src/controls/ScottPlot.WinForms/bin/Release/*.snupkg
src/controls/ScottPlot.WPF/bin/Release/*.nupkg
src/controls/ScottPlot.WPF/bin/Release/*.snupkg
src/controls/ScottPlot.Avalonia/bin/Release/*.nupkg
src/controls/ScottPlot.Avalonia/bin/Release/*.snupkg
src/controls/ScottPlot.Eto/bin/Release/*.nupkg
src/controls/ScottPlot.Eto/bin/Release/*.snupkg
src/ScottPlot4/ScottPlot/bin/Release/*.nupkg
src/ScottPlot4/ScottPlot/bin/Release/*.snupkg
src/ScottPlot4/ScottPlot.WinForms/bin/Release/*.nupkg
src/ScottPlot4/ScottPlot.WinForms/bin/Release/*.snupkg
src/ScottPlot4/ScottPlot.WPF/bin/Release/*.nupkg
src/ScottPlot4/ScottPlot.WPF/bin/Release/*.snupkg
src/ScottPlot4/ScottPlot.Avalonia/bin/Release/*.nupkg
src/ScottPlot4/ScottPlot.Avalonia/bin/Release/*.snupkg
src/ScottPlot4/ScottPlot.Eto/bin/Release/*.nupkg
src/ScottPlot4/ScottPlot.Eto/bin/Release/*.snupkg

0 comments on commit c868dce

Please sign in to comment.