-
Notifications
You must be signed in to change notification settings - Fork 278
Release build workflow #797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,51 @@ | ||||
| name: Build release packages and documentation | ||||
| on: | ||||
| workflow_dispatch: | ||||
| push: | ||||
| tags: | ||||
| - 'v*' | ||||
|
|
||||
| env: | ||||
|
dtchepak marked this conversation as resolved.
|
||||
| CONFIGURATION: Release | ||||
|
|
||||
| jobs: | ||||
| build: | ||||
| runs-on: windows-latest | ||||
| steps: | ||||
| - name: Checkout | ||||
| uses: actions/checkout@v4 | ||||
| with: | ||||
| fetch-depth: 0 | ||||
|
|
||||
| - name: Setup .NET | ||||
| uses: actions/setup-dotnet@v4 | ||||
| with: | ||||
| dotnet-version: | | ||||
| 6.0.x | ||||
| 7.0.x | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can remove .NET 7 sdk from this list
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. .NET 7 is still used here. NSubstitute/tests/NSubstitute.Acceptance.Specs/NSubstitute.Acceptance.Specs.csproj Line 4 in 19b38fd
Removing this is a breaking change I guess
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, we don't need to run test for packing. we use for tests another pipeline
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good one :)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Current targets have test as dependency so will still run. Can do this if we switch to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Maybe that's indeed better, but IMO is not that important. I don't mind the .NET 7 here |
||||
| 8.0.x | ||||
|
|
||||
| - name: Setup Ruby for documentation build | ||||
| uses: ruby/setup-ruby@v1 | ||||
| with: | ||||
| ruby-version: '3.2' | ||||
| bundler-cache: true | ||||
|
|
||||
| - name: Build package and docs | ||||
| run: dotnet run --project 'build/build.fsproj' -- -t All | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I propose to use dotnet pack for packaging instead of custom tool and use tool only for documentation
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also as I see we have following fragment in csproj maybe also make sense to add /p:CI=True or remove this condition from PropertyGroup (probably better to remove)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can't do ContinuousIntegrationBuild locally and those settings are needed for deterministic packages/source link. Therefore the check on CI
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't disagree with this, but do you have an outline of the pros and cons of switching? The current FAKE-based build sorts out our versioning so I don't think it's as straightforward as switching directly (given constraint that I'd like to make version based on repo contents rather than an input). Maybe can defer until larger build changes are done? (as per #797 (comment))
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, 100% it could be changed later. My private opinion: |
||||
|
|
||||
| - name: Upload packages | ||||
| uses: actions/upload-artifact@v4 | ||||
|
dtchepak marked this conversation as resolved.
|
||||
| with: | ||||
| name: packages | ||||
| path: | | ||||
| bin/Release/NSubstitute/*.nupkg | ||||
| bin/Release/NSubstitute/*.snupkg | ||||
|
|
||||
| - name: Upload documentation | ||||
| uses: actions/upload-artifact@v4 | ||||
| with: | ||||
| name: docs | ||||
| path: | | ||||
| bin/Release/nsubstitute.github.com/ | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.