-
Notifications
You must be signed in to change notification settings - Fork 20
Refactor build scripts and github workflow #1308
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
78e0096
Fixed github workflow for package.yml, updated dotnet specific versions
sacOO7 647b624
Removed `cake` postfix from all shell and bash build, package scripts
sacOO7 54dbc62
- Fixed `devcontainer.json` to load windows system with necessary dep…
sacOO7 7864444
Fixed all .nuspec files, updated with latest standard tags with appro…
sacOO7 55a9b49
Refactored/Simplified DLL merging implementation in cake scripts
sacOO7 665a657
Updated missing README target in all nuspec files used for creating n…
sacOO7 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 hidden or 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,32 +1,43 @@ | ||
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
| // README at: https://github.com/devcontainers/templates/tree/main/src/dotnet | ||
| { | ||
| "name": "C# (.NET)", | ||
| // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
| "image": "mcr.microsoft.com/devcontainers/dotnet:0-6.0", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/dotnet:1": { | ||
| "installUsingApt": true, | ||
| "version": "6.0" | ||
| }, | ||
| "ghcr.io/devcontainers/features/ruby:1": { | ||
| "version": "3.1" | ||
| "name": "C# (.NET) - Linux with Mono", | ||
| "image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm", | ||
| "onCreateCommand": "git submodule update --init --recursive", | ||
| "postAttachCommand": "bash .devcontainer/install-dependencies.sh", | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "ms-dotnettools.csdevkit" | ||
| ], | ||
| "settings": { | ||
| "dotnet.server.useOmnisharp": false, | ||
| "files.watcherExclude": { | ||
| "**/bin/**": true, | ||
| "**/obj/**": true, | ||
| "**/.git/**": true, | ||
| "**/node_modules/**": true, | ||
| "**/.vs/**": true | ||
| }, | ||
| "search.exclude": { | ||
| "**/bin": true, | ||
| "**/obj": true, | ||
| "**/node_modules": true | ||
| }, | ||
| "files.eol": "\n" | ||
| } | ||
| } | ||
| }, | ||
| // Features to add to the dev container. More info: https://containers.dev/features. | ||
| // "features": {}, | ||
| // Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
| // "forwardPorts": [5000, 5001], | ||
| // "portsAttributes": { | ||
| // "5001": { | ||
| // "protocol": "https" | ||
| // } | ||
| // } | ||
| // Use 'postCreateCommand' to run commands after the container is created. | ||
| // Used for downloading all submodules and restoring dotnet tools as a part of dotnet CLI | ||
| "postCreateCommand": "git submodule init && git submodule update && dotnet tool restore" | ||
| // Configure tool-specific properties. | ||
| // "customizations": {}, | ||
| // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
| // "remoteUser": "root" | ||
| "containerEnv": { | ||
| "DOTNET_CLI_TELEMETRY_OPTOUT": "1", | ||
| "DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "1", | ||
| "DOTNET_NOLOGO": "1", | ||
| "NUGET_XMLDOC_MODE": "skip", | ||
| "DOTNET_CLI_UI_LANGUAGE": "en", | ||
| "NUGET_PACKAGES": "${containerWorkspaceFolder}/.nuget/packages" | ||
| }, | ||
| "remoteEnv": { | ||
| "PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/.dotnet/tools" | ||
| }, | ||
| "mounts": [ | ||
| "source=ably-dotnet-nuget-cache,target=${containerWorkspaceFolder}/.nuget/packages,type=volume" | ||
| ] | ||
| } | ||
This file contains hidden or 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,80 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| echo "==========================================" | ||
| echo "Installing dependencies for Ably .NET development..." | ||
| echo "==========================================" | ||
| echo "" | ||
|
|
||
| # Update package lists | ||
| echo "📦 Updating package lists..." | ||
| sudo apt-get update -qq | ||
| echo "✓ Package lists updated" | ||
| echo "" | ||
|
|
||
| # Install prerequisites | ||
| echo "📦 Installing prerequisites (gnupg, ca-certificates, wget)..." | ||
| sudo apt-get install -y gnupg ca-certificates wget | ||
| echo "✓ Prerequisites installed" | ||
| echo "" | ||
|
|
||
| # Note: Installing Mono from Debian's official repositories | ||
| echo "ℹ️ Using Mono from Debian official repositories (bookworm)" | ||
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | ||
| echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list | ||
| echo "" | ||
|
|
||
| # Add Microsoft package repository for .NET runtimes | ||
| echo "🔑 Adding Microsoft package repository..." | ||
| wget -q https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
| sudo dpkg -i packages-microsoft-prod.deb | ||
| rm packages-microsoft-prod.deb | ||
| echo "✓ Microsoft repository added" | ||
| echo "" | ||
|
|
||
| # Update package lists with Microsoft repository | ||
| echo "📦 Updating package lists..." | ||
| sudo apt-get update -qq | ||
| echo "✓ Package lists updated" | ||
| echo "" | ||
|
|
||
| # Install Mono and NuGet | ||
| echo "🔧 Installing Mono and NuGet (this may take a few minutes)..." | ||
| sudo apt-get install -y mono-complete nuget | ||
| echo "✓ Mono and NuGet installed" | ||
| echo "" | ||
|
|
||
| # Install .NET 6.0 runtime | ||
| echo "🔧 Installing .NET 6.0 runtime..." | ||
| sudo apt-get install -y dotnet-runtime-6.0 | ||
| echo "✓ .NET 6.0 runtime installed" | ||
| echo "" | ||
|
|
||
| # Install .NET 7.0 runtime | ||
| echo "🔧 Installing .NET 7.0 runtime..." | ||
| sudo apt-get install -y dotnet-runtime-7.0 | ||
|
sacOO7 marked this conversation as resolved.
|
||
| echo "✓ .NET 7.0 runtime installed" | ||
| echo "" | ||
|
|
||
| echo "==========================================" | ||
| echo "✅ All dependencies installed successfully!" | ||
| echo "==========================================" | ||
| echo "" | ||
|
|
||
| echo "📋 Installed versions:" | ||
| echo "" | ||
| echo "Mono version:" | ||
| mono --version | head -n 1 | ||
| echo "" | ||
| echo ".NET Runtimes:" | ||
| dotnet --list-runtimes | ||
| echo "" | ||
| echo ".NET SDKs:" | ||
| dotnet --list-sdks | ||
| echo "" | ||
| echo "NuGet version:" | ||
| nuget help | head -n 1 | ||
| echo "" | ||
| echo "==========================================" | ||
| echo "🎉 Setup complete! You can now build the project." | ||
| echo "==========================================" | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.