diff --git a/.github/workflows/github-compile.yml b/.github/workflows/github-compile.yml index 920447a2..54c5b974 100644 --- a/.github/workflows/github-compile.yml +++ b/.github/workflows/github-compile.yml @@ -50,7 +50,7 @@ jobs: - name: '🏗 📦 Build, Pack & Announce New Release (if appropriate)' shell: bash run: | - cd "$build_repository_folderpath" \ + cd "$build_repository_folderpath/Laerdal.Scripts" \ && \ dotnet \ msbuild \ diff --git a/Laerdal.McuMgr.Bindings.Android.Native/gradle/wrapper/gradle-wrapper.properties b/Laerdal.McuMgr.Bindings.Android.Native/gradle/wrapper/gradle-wrapper.properties index f398c33c..164080a8 100644 --- a/Laerdal.McuMgr.Bindings.Android.Native/gradle/wrapper/gradle-wrapper.properties +++ b/Laerdal.McuMgr.Bindings.Android.Native/gradle/wrapper/gradle-wrapper.properties @@ -2,5 +2,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/Laerdal.McuMgr.Bindings.Android.Native/mcumgr-laerdal-wrapper/gradle/wrapper/gradle-wrapper.properties b/Laerdal.McuMgr.Bindings.Android.Native/mcumgr-laerdal-wrapper/gradle/wrapper/gradle-wrapper.properties index 070cb702..3eda44db 100644 --- a/Laerdal.McuMgr.Bindings.Android.Native/mcumgr-laerdal-wrapper/gradle/wrapper/gradle-wrapper.properties +++ b/Laerdal.McuMgr.Bindings.Android.Native/mcumgr-laerdal-wrapper/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.NativeBuilder.targets b/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.NativeBuilder.targets index a332d096..b2f1a6f1 100644 --- a/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.NativeBuilder.targets +++ b/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.NativeBuilder.targets @@ -74,10 +74,10 @@ - - - - + + + + diff --git a/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.csproj b/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.csproj index 493884d7..90330324 100644 --- a/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.csproj +++ b/Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.csproj @@ -55,10 +55,10 @@ true - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 $(PackageId) $(Authors) diff --git a/Laerdal.McuMgr.Bindings.MacCatalyst/Laerdal.McuMgr.Bindings.MacCatalyst.csproj b/Laerdal.McuMgr.Bindings.MacCatalyst/Laerdal.McuMgr.Bindings.MacCatalyst.csproj index d27175cc..e99a1112 100644 --- a/Laerdal.McuMgr.Bindings.MacCatalyst/Laerdal.McuMgr.Bindings.MacCatalyst.csproj +++ b/Laerdal.McuMgr.Bindings.MacCatalyst/Laerdal.McuMgr.Bindings.MacCatalyst.csproj @@ -60,10 +60,10 @@ $(AllowedReferenceRelatedFileExtensions);.pdb - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 $(PackageId) McuMgr Bindings for MacCatalyst - MAUI ready diff --git a/Laerdal.McuMgr.Bindings.NetStandard/Laerdal.McuMgr.Bindings.NetStandard.csproj b/Laerdal.McuMgr.Bindings.NetStandard/Laerdal.McuMgr.Bindings.NetStandard.csproj index f7ed3a16..d84b1442 100644 --- a/Laerdal.McuMgr.Bindings.NetStandard/Laerdal.McuMgr.Bindings.NetStandard.csproj +++ b/Laerdal.McuMgr.Bindings.NetStandard/Laerdal.McuMgr.Bindings.NetStandard.csproj @@ -37,10 +37,10 @@ $(AllowedReferenceRelatedFileExtensions);.pdb - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 $(PackageId) McuMgr C# Implementation (WIP) diff --git a/Laerdal.McuMgr.Bindings.iOS/Laerdal.McuMgr.Bindings.iOS.csproj b/Laerdal.McuMgr.Bindings.iOS/Laerdal.McuMgr.Bindings.iOS.csproj index 3709b892..2002baec 100644 --- a/Laerdal.McuMgr.Bindings.iOS/Laerdal.McuMgr.Bindings.iOS.csproj +++ b/Laerdal.McuMgr.Bindings.iOS/Laerdal.McuMgr.Bindings.iOS.csproj @@ -58,10 +58,10 @@ $(AllowedReferenceRelatedFileExtensions);.pdb - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 $(PackageId) McuMgr Bindings for iOS - MAUI ready diff --git a/Laerdal.McuMgr.sln b/Laerdal.McuMgr.sln index 0825d0c8..66832693 100644 --- a/Laerdal.McuMgr.sln +++ b/Laerdal.McuMgr.sln @@ -5,11 +5,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Misc", "_Misc", "{2459FC0F LICENSE = LICENSE .gitignore = .gitignore azure-pipelines.yml = azure-pipelines.yml - Laerdal.CreateNewReleaseInGithub.sh = Laerdal.CreateNewReleaseInGithub.sh - Laerdal.McuMgr.Builder.targets = Laerdal.McuMgr.Builder.targets - Laerdal.Version.sh = Laerdal.Version.sh + Laerdal.CreateNewReleaseInGithub.sh = Laerdal.Scripts\Laerdal.CreateNewReleaseInGithub.sh + Laerdal.McuMgr.Builder.targets = Laerdal.Scripts\Laerdal.McuMgr.Builder.targets + Laerdal.Version.sh = Laerdal.Scripts\Laerdal.Version.sh global.json = global.json - Laerdal.SetupBuildEnvironment.sh = Laerdal.SetupBuildEnvironment.sh + Laerdal.SetupBuildEnvironment.sh = Laerdal.Scripts\Laerdal.SetupBuildEnvironment.sh .github\workflows\github-compile.yml = .github\workflows\github-compile.yml .github\workflows\github-deploy.yml = .github\workflows\github-deploy.yml EndProjectSection diff --git a/Laerdal.McuMgr/Laerdal.McuMgr.csproj b/Laerdal.McuMgr/Laerdal.McuMgr.csproj index e622eccf..75cb7a14 100644 --- a/Laerdal.McuMgr/Laerdal.McuMgr.csproj +++ b/Laerdal.McuMgr/Laerdal.McuMgr.csproj @@ -55,10 +55,10 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 - 1.0.1037.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 + 1.0.1039.0 $(PackageId) $(Authors) @@ -149,21 +149,21 @@ - + - + - + - + diff --git a/Laerdal.CreateNewReleaseInGithub.sh b/Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh similarity index 100% rename from Laerdal.CreateNewReleaseInGithub.sh rename to Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh diff --git a/Laerdal.McuMgr.Builder.targets b/Laerdal.Scripts/Laerdal.McuMgr.Builder.targets similarity index 90% rename from Laerdal.McuMgr.Builder.targets rename to Laerdal.Scripts/Laerdal.McuMgr.Builder.targets index b343825d..e84bdcf9 100644 --- a/Laerdal.McuMgr.Builder.targets +++ b/Laerdal.Scripts/Laerdal.McuMgr.Builder.targets @@ -6,19 +6,19 @@ - + - - + + - + @@ -34,10 +34,9 @@ true $(BUILD_ARTIFACTSTAGINGDIRECTORY) - $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `Artifacts/`)) - - TestResults - $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), $(Laerdal_Test_Results_Folderpath))) + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Artifacts/`)) + + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `TestResults`)) false @@ -46,11 +45,13 @@ $(BUILD_REPOSITORY_NAME) True - Laerdal.McuMgr/Laerdal.McuMgr.csproj - Laerdal.McuMgr.Bindings.iOS/Laerdal.McuMgr.Bindings.iOS.csproj - Laerdal.McuMgr.Bindings.Android/Laerdal.McuMgr.Bindings.Android.csproj - Laerdal.McuMgr.Bindings.MacCatalyst/Laerdal.McuMgr.Bindings.MacCatalyst.csproj - Laerdal.McuMgr.Bindings.NetStandard/Laerdal.McuMgr.Bindings.NetStandard.csproj + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Laerdal.McuMgr`, `Laerdal.McuMgr.csproj`)) + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Laerdal.McuMgr.Bindings.iOS`, `Laerdal.McuMgr.Bindings.iOS.csproj`)) + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Laerdal.McuMgr.Bindings.Android`, `Laerdal.McuMgr.Bindings.Android.csproj`)) + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Laerdal.McuMgr.Bindings.MacCatalyst`, `Laerdal.McuMgr.Bindings.MacCatalyst.csproj`)) + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Laerdal.McuMgr.Bindings.NetStandard`, `Laerdal.McuMgr.Bindings.NetStandard.csproj`)) + + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Laerdal.McuMgr.Tests`, `Laerdal.McuMgr.Tests.csproj`)) @@ -87,7 +88,7 @@ EchoOff="true" Command=" bash '$(Laerdal_Version_Script_Filepath)' $(_Laerdal_Version_Script_Parameters) " ConsoleToMSBuild="true" - WorkingDirectory="$(MSBuildThisFileDirectory)"> + WorkingDirectory="$(MSBuildThisFileDirectory)/.."> @@ -187,7 +188,7 @@ <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)GradlePath=$(Laerdal_Gradle_Path); - <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)SourceRoot=$(MSBuildThisFileDirectory)/Laerdal.McuMgr.Bindings/; + <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)SourceRoot=$(MSBuildThisFileDirectory)/../Laerdal.McuMgr.Bindings/; <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)Configuration=$(Configuration); <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)PackageOutputPath=$(PackageOutputPath); <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)ShouldSkipMacCatalyst=$(ShouldSkipMacCatalyst); @@ -214,7 +215,7 @@ - <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)SourceRoot=$(MSBuildThisFileDirectory)/Laerdal.McuMgr/; + <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)SourceRoot=$(MSBuildThisFileDirectory)/../Laerdal.McuMgr/; <_Laerdal_Build_Parameters>$(_Laerdal_Build_Parameters)Laerdal_McuMgr_Bindings_Package_Version=$(Laerdal_Version_Assembly); @@ -228,7 +229,7 @@ AfterTargets="BuildProjects"> @@ -241,7 +242,7 @@ + WorkingDirectory="$(MSBuildThisFileDirectory)/.."/> @@ -275,7 +276,7 @@ - $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `Laerdal.CreateNewReleaseInGithub.sh`)) + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), `..`, `Laerdal.CreateNewReleaseInGithub.sh`)) <_Laerdal_Create_Github_Release_Script_Parameters>$(_Laerdal_Create_Github_Release_Script_Parameters) --git-branch '$(Laerdal_Source_Branch)' <_Laerdal_Create_Github_Release_Script_Parameters>$(_Laerdal_Create_Github_Release_Script_Parameters) --tag-version '$(Laerdal_Version_Base)' @@ -288,7 +289,7 @@ + WorkingDirectory="$(MSBuildThisFileDirectory)/.."/> diff --git a/Laerdal.SetupBuildEnvironment.sh b/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh old mode 100755 new mode 100644 similarity index 100% rename from Laerdal.SetupBuildEnvironment.sh rename to Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh diff --git a/Laerdal.Version.sh b/Laerdal.Scripts/Laerdal.Version.sh similarity index 100% rename from Laerdal.Version.sh rename to Laerdal.Scripts/Laerdal.Version.sh diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 71422e8d..6a79969c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -74,7 +74,7 @@ jobs: persistCredentials: True - task: Bash@3 - displayName: 'Setup Build Environment for "Laerdal.Helpers"' + displayName: '🛠 Setup Build Environment' inputs: targetType: filePath filePath: 'Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh' @@ -90,7 +90,7 @@ jobs: inputs: command: 'custom' custom: 'msbuild' - arguments: 'Laerdal.McuMgr.Builder.targets -m:1 -p:ShouldSkipMacCatalyst="true" -p:Laerdal_Gradle_Path="/usr/local/opt/gradle@7/bin/gradle" -p:Laerdal_Test_Results_Folderpath="$(Laerdal_Test_Results_Folderpath)" -p:Laerdal_Github_Access_Token="$(Github.ComponentsTeam.AccessToken)" -p:Laerdal_Repository_Path="$(Repository.Path)" -p:Laerdal_Source_Branch="$(Build.SourceBranch)" -p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/Artifacts/" ' + arguments: 'Laerdal.Scripts/Laerdal.McuMgr.Builder.targets -m:1 -p:ShouldSkipMacCatalyst="true" -p:Laerdal_Gradle_Path="/usr/local/opt/gradle@7/bin/gradle" -p:Laerdal_Test_Results_Folderpath="$(Laerdal_Test_Results_Folderpath)" -p:Laerdal_Github_Access_Token="$(Github.ComponentsTeam.AccessToken)" -p:Laerdal_Repository_Path="$(Repository.Path)" -p:Laerdal_Source_Branch="$(Build.SourceBranch)" -p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/Artifacts/" ' - task: PublishTestResults@2 displayName: '📡 Publish Test Results'