-
Notifications
You must be signed in to change notification settings - Fork 5
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
V9.0.0/rtm #102
Merged
Merged
V9.0.0/rtm #102
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a338ac5
:memo: updated DocFX
gimlichael d2caa86
:arrow_up: bump dependencies
gimlichael 1cddd3a
:construction_worker: updated CI/CD pipeline due to external circular…
gimlichael 0c23630
:construction_worker: tweaked to be unique so no collision with prima…
gimlichael 5be13ce
:construction_worker: tweaked further
gimlichael 0431541
tweaked
gimlichael 932fc1d
:construction_worker: use projects with pack
gimlichael a780a1a
projects
gimlichael e2f9ef6
aligned both pipelines
gimlichael b1d1fdc
fix
gimlichael File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1 +1 @@ | ||
Availability: .NET 8, .NET 6, .NET Standard 2.1 and .NET Standard 2.0 | ||
Availability: .NET 9, .NET 8, .NET Standard 2.1 and .NET Standard 2.0 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Availability: .NET 8, .NET 6 and .NET Standard 2.0 | ||
Availability: .NET 9, .NET 8 and .NET Standard 2.0 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Availability: .NET 8, .NET 6 and .NET Standard 2.0 (when applicable) or .NET Standard 2.1 (when applicable) | ||
Availability: .NET 9, .NET 8 and .NET Standard 2.0 (when applicable) or .NET Standard 2.1 (when applicable) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Availability: .NET 8 and .NET 6 | ||
Availability: .NET 9 and .NET 8 |
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,166 @@ | ||
name: Cuemon CI/CD Pipeline (Delayed) | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- .codecov/** | ||
- .docfx/** | ||
- .github/** | ||
- .nuget/** | ||
- '**.md' | ||
workflow_dispatch: | ||
inputs: | ||
configuration: | ||
type: choice | ||
description: The build configuration to use in the deploy stage. | ||
required: true | ||
default: Release | ||
options: | ||
- Debug | ||
- Release | ||
|
||
jobs: | ||
prepare_linux: | ||
name: 🐧 Prepare Linux | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
outputs: | ||
restoreCacheKey: ${{ steps.dotnet-restore.outputs.restoreCacheKey }} | ||
steps: | ||
- name: Checkout | ||
uses: codebeltnet/git-checkout@v1 | ||
|
||
- name: Install .NET | ||
uses: codebeltnet/install-dotnet@v1 | ||
with: | ||
includePreview: true | ||
|
||
- id: dotnet-restore | ||
name: Restore Dependencies | ||
uses: codebeltnet/dotnet-restore@v2 | ||
with: | ||
useRestoreCache: true | ||
|
||
prepare_windows: | ||
name: 🪟 Prepare Windows | ||
runs-on: windows-2022 | ||
timeout-minutes: 15 | ||
outputs: | ||
restoreCacheKey: ${{ steps.dotnet-restore.outputs.restoreCacheKey }} | ||
steps: | ||
- name: Checkout | ||
uses: codebeltnet/git-checkout@v1 | ||
|
||
- name: Install .NET | ||
uses: codebeltnet/install-dotnet@v1 | ||
with: | ||
includePreview: true | ||
|
||
- id: dotnet-restore | ||
name: Restore Dependencies | ||
uses: codebeltnet/dotnet-restore@v2 | ||
with: | ||
useRestoreCache: true | ||
|
||
build: | ||
name: 🛠️ Build | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
configuration: [Debug, Release] | ||
framework: [net9.0, net8.0, netstandard2.0] | ||
needs: [prepare_linux] | ||
outputs: | ||
version: ${{ steps.minver-calculate.outputs.version }} | ||
projects: ${{ steps.projects.outputs.result }} | ||
steps: | ||
- name: Checkout | ||
uses: codebeltnet/git-checkout@v1 | ||
|
||
- name: Install .NET | ||
uses: codebeltnet/install-dotnet@v1 | ||
with: | ||
includePreview: true | ||
|
||
- name: Install MinVer | ||
uses: codebeltnet/dotnet-tool-install-minver@v1 | ||
|
||
- id: minver-calculate | ||
name: Calculate Version | ||
uses: codebeltnet/minver-calculate@v2 | ||
|
||
- name: Download cuemon.snk file | ||
uses: codebeltnet/gcp-download-file@v1 | ||
with: | ||
serviceAccountKey: ${{ secrets.GCP_TOKEN }} | ||
bucketName: ${{ secrets.GCP_BUCKETNAME }} | ||
objectName: cuemon.snk | ||
|
||
- id: projects | ||
name: Set environment variable for projects | ||
run: | | ||
if [ "${{ matrix.framework }}" == "netstandard2.0" ]; then | ||
projects=( | ||
"src/**/Cuemon.Extensions.Globalization.csproj" | ||
) | ||
echo "result=$(IFS=' '; echo "${projects[*]}")" >> $GITHUB_OUTPUT | ||
else | ||
projects=( | ||
"src/**/Cuemon.Core.App.csproj" | ||
"src/**/Cuemon.Extensions.Globalization.csproj" | ||
) | ||
echo "result=$(IFS=' '; echo "${projects[*]}")" >> $GITHUB_OUTPUT | ||
fi | ||
shell: bash | ||
|
||
- id: dotnet-build | ||
name: Build for ${{ matrix.framework }} (${{ matrix.configuration }}) | ||
uses: codebeltnet/dotnet-build@v2 | ||
with: | ||
projects: ${{ steps.projects.outputs.result }} | ||
configuration: ${{ matrix.configuration }} | ||
framework: ${{ matrix.framework }} | ||
restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} | ||
uploadBuildArtifactName: 'DelayedBuild.${{ matrix.framework }}.${{ matrix.configuration }}' | ||
|
||
pack: | ||
name: 📦 Pack | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
configuration: [Debug, Release] | ||
needs: [prepare_linux, build] | ||
steps: | ||
- name: Checkout | ||
uses: codebeltnet/git-checkout@v1 | ||
|
||
- name: Install .NET | ||
uses: codebeltnet/install-dotnet@v1 | ||
with: | ||
includePreview: true | ||
|
||
- name: Pack for ${{ matrix.configuration }} | ||
uses: codebeltnet/dotnet-pack@v2 | ||
with: | ||
configuration: ${{ matrix.configuration }} | ||
uploadPackedArtifact: true | ||
version: ${{ needs.build.outputs.version }} | ||
restoreCacheKey: ${{ needs.prepare_linux.outputs.restoreCacheKey }} | ||
downloadBuildArtifactPattern: 'DelayedBuild.*.${{ matrix.configuration }}' | ||
uploadPackedArtifactName: 'NuGet-Delayed-${{ matrix.configuration }}' | ||
projects: ${{ needs.build.outputs.projects }} | ||
|
||
deploy: | ||
if: github.event_name != 'pull_request' | ||
name: 🚀 Deploy v${{ needs.build.outputs.version }} | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
needs: [build, pack] | ||
environment: Production | ||
steps: | ||
- uses: codebeltnet/nuget-push@v1 | ||
with: | ||
token: ${{ secrets.NUGET_TOKEN }} | ||
configuration: ${{ inputs.configuration == '' && 'Release' || inputs.configuration }} | ||
downloadBuildArtifactName: NuGet-Delayed-${{ inputs.configuration == '' && 'Release' || inputs.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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Remove unnecessary
includePreview: true
flag from workflowNo projects target preview .NET versions. Consider removing the
includePreview: true
setting to streamline the pipeline..github/workflows/delayed-pipelines.yml:35
🔗 Analysis chain
Review the inclusion of preview .NET versions in production pipeline
The
includePreview: true
flag is set for .NET installation. Consider if preview versions are necessary for your production pipeline, as they might introduce instability.Also applies to: 56-56
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 100
Script:
Length of output: 5820
Script:
Length of output: 51