Skip to content

Commit 62ae3e3

Browse files
Merge pull request #49 from max-ieremenko/release/4.2.1
Release/4.2.1
2 parents 8860e77 + 46cca19 commit 62ae3e3

410 files changed

Lines changed: 2981 additions & 4631 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: windows-latest
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424

2525
- name: Install dependencies
2626
shell: pwsh
@@ -35,7 +35,7 @@ jobs:
3535
run: ./Build/build.ps1 -Mode "github" -GithubToken "${{ secrets.GITHUB_TOKEN }}"
3636

3737
- name: Artifacts
38-
uses: actions/upload-artifact@v3
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: packages
4141
path: |

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ bin/
44
build.out/
55

66
launchSettings.json
7+
launchSettings.txt
78
*.sln.DotSettings.user
9+
*.csproj.user
810

911
todo.txt

Build/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ build.ps1 is designed to run on windows
55
- PowerShell Desktop 5.1
66
- PowerShell [7.3.0](https://github.com/PowerShell/PowerShell/releases/tag/v7.3.0) for .net 7.0 and 8.0 tests
77
- PowerShell [7.2.1](https://github.com/PowerShell/PowerShell/releases/tag/v7.2.1) for .net 6.0 tests
8-
- Install-Module -Name [InvokeBuild](https://www.powershellgallery.com/packages/InvokeBuild/5.10.4) -RequiredVersion 5.10.4
9-
- Install-Module -Name [ThirdPartyLibraries](https://www.powershellgallery.com/packages/ThirdPartyLibraries/3.4.1) -RequiredVersion 3.4.1
8+
- Install-Module -Name [InvokeBuild](https://www.powershellgallery.com/packages/InvokeBuild/5.11.0) -RequiredVersion 5.11.0
9+
- Install-Module -Name [ThirdPartyLibraries](https://www.powershellgallery.com/packages/ThirdPartyLibraries/3.5.1) -RequiredVersion 3.5.1
1010
- .net framework 4.7.2+ sdk
1111
- .net 8.0 sdk
1212
- docker, switched to linux containers

Build/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Requires -Version "7.0"
2-
#Requires -Modules @{ ModuleName="InvokeBuild"; ModuleVersion="5.10.4" }
3-
#Requires -Modules @{ ModuleName="ThirdPartyLibraries"; ModuleVersion="3.4.1" }
2+
#Requires -Modules @{ ModuleName="InvokeBuild"; ModuleVersion="5.11.0" }
3+
#Requires -Modules @{ ModuleName="ThirdPartyLibraries"; ModuleVersion="3.5.1" }
44

55
[CmdletBinding()]
66
param (

Build/create-images.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Requires -Version "7.0"
2-
#Requires -Modules @{ ModuleName="InvokeBuild"; ModuleVersion="5.10.4" }
2+
#Requires -Modules @{ ModuleName="InvokeBuild"; ModuleVersion="5.11.0" }
33

44
Set-StrictMode -Version Latest
55

Build/install-dependencies.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $ErrorActionPreference = "Stop"
1616
. (Join-Path $PSScriptRoot "scripts/Invoke-InstallModule.ps1")
1717

1818
if (".net" -in $List) {
19-
Invoke-InstallDotNet -Version "6.0.319"
20-
Invoke-InstallDotNet -Version "7.0.100"
19+
Invoke-InstallDotNet -Version "6.0.419"
20+
Invoke-InstallDotNet -Version "7.0.406"
2121

2222
$version = (Get-Content -Raw (Join-Path $PSScriptRoot "../Sources/global.json") | ConvertFrom-Json).sdk.version
2323
Invoke-InstallDotNet -Version $version

Build/show-powershell-images.ps1

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$ErrorActionPreference = "Stop"
1+
$ErrorActionPreference = 'Stop'
22

33
function Get-ShortVersion {
44
[CmdletBinding()]
@@ -9,23 +9,27 @@ function Get-ShortVersion {
99
)
1010

1111
process {
12-
$parts = $FullVersion -split "-"
13-
$result = $parts[0]
12+
# preview-7.5-ubuntu-20.04
13+
# 7.4-ubuntu-22.04
14+
# 7.3.0-preview.1-ubuntu-20.04
15+
$parts = $FullVersion -split '-'
16+
$version = $parts[0]
17+
$tag = $parts[1]
1418

15-
if ($parts[1] -like "preview*") {
16-
$result += "-" + $parts[1]
19+
if ($version -like 'preview*') {
20+
$version = $parts[1]
21+
$tag = $parts[0]
1722
}
1823

19-
return $result
24+
if ($tag -like 'preview*') {
25+
$version += '-' + $tag
26+
}
27+
28+
return $version
2029
}
2130
}
2231

23-
(Invoke-RestMethod -Uri "https://mcr.microsoft.com/v2/powershell/tags/list").tags `
24-
| Where-Object {$_ -Like "[0-9]*"} `
25-
| Get-ShortVersion `
26-
| Sort-Object -Unique
27-
28-
# (Invoke-RestMethod -Uri "https://mcr.microsoft.com/v2/powershell/tags/list").tags `
29-
# | Where-Object {$_ -Like "7.2.0*"} `
30-
# | Where-Object {($_ -Like "*ubuntu*") -or ($_ -Like "*alpine*")} `
31-
# | Sort-Object
32+
(Invoke-RestMethod -Uri 'https://mcr.microsoft.com/v2/powershell/tags/list').tags `
33+
| Where-Object { ($_ -Like '[0-9]*') -or ($_ -Like 'preview-[0-9]*') } `
34+
| Get-ShortVersion `
35+
| Sort-Object -Unique

Build/tasks/build-tasks.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ task PackGlobalTool {
7070
}
7171

7272
task PackPoweShellModule {
73-
$source = Join-Path $settings.bin "SqlDatabase.PowerShell\netstandard2.0\"
73+
$source = Join-Path $settings.bin "SqlDatabase.PowerShell"
7474
$dest = $settings.artifactsPowerShell
7575

7676
Copy-Item -Path $source -Destination $dest -Recurse
@@ -204,14 +204,14 @@ task PsCoreTest {
204204
, "mcr.microsoft.com/powershell:7.2.0-ubuntu-20.04"
205205
, "mcr.microsoft.com/powershell:7.2.1-ubuntu-20.04"
206206
, "mcr.microsoft.com/powershell:7.2.2-ubuntu-20.04"
207-
, "mcr.microsoft.com/powershell:7.3-ubuntu-20.04")
208-
209-
foreach ($image in $images) {
210-
exec { docker pull $image }
211-
}
207+
, "mcr.microsoft.com/powershell:7.3-ubuntu-20.04"
208+
, "mcr.microsoft.com/powershell:7.4-ubuntu-20.04"
209+
, "mcr.microsoft.com/powershell:preview-7.5-ubuntu-20.04")
212210

213211
$builds = @()
214212
foreach ($image in $images) {
213+
exec { docker pull -q $image }
214+
215215
foreach ($database in $databases) {
216216
$builds += @{
217217
File = "build-tasks.it-ps-core.ps1"

Build/tasks/create-images-tasks.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ task BuildMsSqlDatabase {
1717
$dockerfile = Join-Path $context "image-mssql-2017.dockerfile"
1818
exec {
1919
docker build `
20+
--pull `
2021
-f $dockerfile `
2122
-t sqldatabase/mssql:2017 `
2223
$context
@@ -27,6 +28,7 @@ task BuildPgSqlDatabase {
2728
$dockerfile = Join-Path $context "image-postgres-133.dockerfile"
2829
exec {
2930
docker build `
31+
--pull `
3032
-f $dockerfile `
3133
-t sqldatabase/postgres:13.3 `
3234
$context
@@ -37,6 +39,7 @@ task BuildMySqlDatabase {
3739
$dockerfile = Join-Path $context "image-mysql-8025.dockerfile"
3840
exec {
3941
docker build `
42+
--pull `
4043
-f $dockerfile `
4144
-t sqldatabase/mysql:8.0.25 `
4245
$context
@@ -47,6 +50,7 @@ task BuildDotnetSdk60 {
4750
$dockerfile = Join-Path $context "image-dotnet-sdk-6.0.dockerfile"
4851
exec {
4952
docker build `
53+
--pull `
5054
-f $dockerfile `
5155
-t sqldatabase/dotnet_pwsh:6.0-sdk `
5256
.
@@ -57,6 +61,7 @@ task BuildDotnetRuntime60 {
5761
$dockerfile = Join-Path $context "image-dotnet-runtime-6.0.dockerfile"
5862
exec {
5963
docker build `
64+
--pull `
6065
-f $dockerfile `
6166
-t sqldatabase/dotnet_pwsh:6.0-runtime `
6267
.
@@ -67,6 +72,7 @@ task BuildDotnetSdk70 {
6772
$dockerfile = Join-Path $context "image-dotnet-sdk-7.0.dockerfile"
6873
exec {
6974
docker build `
75+
--pull `
7076
-f $dockerfile `
7177
-t sqldatabase/dotnet_pwsh:7.0-sdk `
7278
.
@@ -77,6 +83,7 @@ task BuildDotnetRuntime70 {
7783
$dockerfile = Join-Path $context "image-dotnet-runtime-7.0.dockerfile"
7884
exec {
7985
docker build `
86+
--pull `
8087
-f $dockerfile `
8188
-t sqldatabase/dotnet_pwsh:7.0-runtime `
8289
.
@@ -87,6 +94,7 @@ task BuildDotnetSdk80 {
8794
$dockerfile = Join-Path $context "image-dotnet-sdk-8.0.dockerfile"
8895
exec {
8996
docker build `
97+
--pull `
9098
-f $dockerfile `
9199
-t sqldatabase/dotnet_pwsh:8.0-sdk `
92100
.
@@ -97,6 +105,7 @@ task BuildDotnetRuntime80 {
97105
$dockerfile = Join-Path $context "image-dotnet-runtime-8.0.dockerfile"
98106
exec {
99107
docker build `
108+
--pull `
100109
-f $dockerfile `
101110
-t sqldatabase/dotnet_pwsh:8.0-runtime `
102111
.

Build/third-party-libraries/packages/nuget.org/dapper.strongname/2.1.15/index.json renamed to Build/third-party-libraries/packages/nuget.org/dapper.strongname/2.1.35/index.json

File renamed without changes.

0 commit comments

Comments
 (0)