Skip to content
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

ksidirop/MAN-296-migrate-to-github-actions #98

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/github-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
"$build_repository_folderpath/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh" \
"https://nuget.pkg.github.com/Laerdal/index.json" \
"${{ secrets.scl_github_nuget_feed_username }}" \
"${{ secrets.scl_github_access_token }}"
"${{ secrets.scl_github_access_token }}" \
"$build_repository_folderpath/Artifacts"

- name: '🏗 📦 Build, Pack & Announce New Release (if appropriate)'
shell: bash
run: |
cd "$build_repository_folderpath" \
cd "$build_repository_folderpath/Laerdal.Scripts" \
&& \
dotnet \
msbuild \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Empty file modified Laerdal.McuMgr.Bindings.Android.Native/gradlew
100755 → 100644
Empty file.
Original file line number Diff line number Diff line change
@@ -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
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
<AndroidSdkPath Condition=" '$(AndroidSdkPath)' == '' AND '$(IsWindows)' == 'true' ">C:\\Users\\$(USERNAME)\\AppData\\Local\\Android\\sdk</AndroidSdkPath>

<McuMgrLaerdalWrapperAarFilePath>$(McuMgrLaerdalWrapperLibSourceDirectory)/mcumgr-laerdal-wrapper/build/outputs/aar/mcumgr-laerdal-wrapper-release.aar</McuMgrLaerdalWrapperAarFilePath>

<ValidateUrlParameter Condition=" '$(IsWindows)' == 'true' ">--validate-url</ValidateUrlParameter>
</PropertyGroup>

<Error Condition=" '$(AndroidSdkPath)' == '' " Text="** [ERROR] Failed to deduce the AndroidSdkPath for this platform!"/>
Expand All @@ -74,10 +76,10 @@
<Delete Files="$(CoreAarLibrary)"/>

<!-- this builds mcumgr-laerdal-wrapper-release.aar to make life easier we set +x permission on gradlew right before invoking it -->
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) --version "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) wrapper --distribution-type=BIN --gradle-version=7.6 "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" chmod +x ./gradlew " Condition=" '$(IsUnix)' == 'true' "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" ./gradlew wrapper clean assembleRelease --console plain --warning-mode all "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) --version "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) wrapper --distribution-type=BIN --gradle-version=7.6 $(ValidateUrlParameter) "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" chmod +x ./gradlew " Condition=" '$(IsUnix)' == 'true' "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" ./gradlew wrapper clean assembleRelease --console plain --warning-mode all "/>

<Copy SourceFiles="$(McuMgrLaerdalWrapperAarFilePath)" DestinationFiles="$(CoreAarLibrary)"/>
</Target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<!-- these versions are getting replaced by the build script in one swift pass -->
<Version>1.0.1037.0</Version>
<FileVersion>1.0.1037.0</FileVersion>
<PackageVersion>1.0.1037.0</PackageVersion>
<AssemblyVersion>1.0.1037.0</AssemblyVersion>
<Version>1.0.1039.0</Version>
<FileVersion>1.0.1039.0</FileVersion>
<PackageVersion>1.0.1039.0</PackageVersion>
<AssemblyVersion>1.0.1039.0</AssemblyVersion>

<Title>$(PackageId)</Title>
<Owners>$(Authors)</Owners>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
<AllowedReferenceRelatedFileExtensions>$(AllowedReferenceRelatedFileExtensions);.pdb</AllowedReferenceRelatedFileExtensions>

<!-- these versions are getting replaced by the build script in one swift pass -->
<Version>1.0.1037.0</Version>
<FileVersion>1.0.1037.0</FileVersion>
<PackageVersion>1.0.1037.0</PackageVersion>
<AssemblyVersion>1.0.1037.0</AssemblyVersion>
<Version>1.0.1039.0</Version>
<FileVersion>1.0.1039.0</FileVersion>
<PackageVersion>1.0.1039.0</PackageVersion>
<AssemblyVersion>1.0.1039.0</AssemblyVersion>

<Title>$(PackageId)</Title>
<Summary>McuMgr Bindings for MacCatalyst - MAUI ready</Summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
<AllowedReferenceRelatedFileExtensions>$(AllowedReferenceRelatedFileExtensions);.pdb</AllowedReferenceRelatedFileExtensions>

<!-- these versions are getting replaced by the build script in one swift pass -->
<Version>1.0.1037.0</Version>
<FileVersion>1.0.1037.0</FileVersion>
<PackageVersion>1.0.1037.0</PackageVersion>
<AssemblyVersion>1.0.1037.0</AssemblyVersion>
<Version>1.0.1039.0</Version>
<FileVersion>1.0.1039.0</FileVersion>
<PackageVersion>1.0.1039.0</PackageVersion>
<AssemblyVersion>1.0.1039.0</AssemblyVersion>

<Title>$(PackageId)</Title>
<Summary>McuMgr C# Implementation (WIP)</Summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
<AllowedReferenceRelatedFileExtensions>$(AllowedReferenceRelatedFileExtensions);.pdb</AllowedReferenceRelatedFileExtensions>

<!-- these versions are getting replaced by the build script in one swift pass -->
<Version>1.0.1037.0</Version>
<FileVersion>1.0.1037.0</FileVersion>
<PackageVersion>1.0.1037.0</PackageVersion>
<AssemblyVersion>1.0.1037.0</AssemblyVersion>
<Version>1.0.1039.0</Version>
<FileVersion>1.0.1039.0</FileVersion>
<PackageVersion>1.0.1039.0</PackageVersion>
<AssemblyVersion>1.0.1039.0</AssemblyVersion>

<Title>$(PackageId)</Title>
<Summary>McuMgr Bindings for iOS - MAUI ready</Summary>
Expand Down
8 changes: 4 additions & 4 deletions Laerdal.McuMgr.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions Laerdal.McuMgr/Laerdal.McuMgr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<!-- these versions are getting replaced by the build script in one swift pass -->
<Version>1.0.1037.0</Version>
<FileVersion>1.0.1037.0</FileVersion>
<PackageVersion>1.0.1037.0</PackageVersion>
<AssemblyVersion>1.0.1037.0</AssemblyVersion>
<Version>1.0.1039.0</Version>
<FileVersion>1.0.1039.0</FileVersion>
<PackageVersion>1.0.1039.0</PackageVersion>
<AssemblyVersion>1.0.1039.0</AssemblyVersion>

<Title>$(PackageId)</Title>
<Owners>$(Authors)</Owners>
Expand Down Expand Up @@ -149,21 +149,21 @@

<!-- ANDROID -->
<ItemGroup Condition=" '$(IsAndroid)' == 'true' ">
<PackageReference Include="Laerdal.McuMgr.Bindings.Android" Version="1.0.1037.0"/>
<PackageReference Include="Laerdal.McuMgr.Bindings.Android" Version="1.0.1039.0"/>
</ItemGroup>

<!-- IOS/MacCatalyst -->
<ItemGroup Condition=" '$(IsIOS)' == 'true' ">
<PackageReference Include="Laerdal.McuMgr.Bindings.iOS" Version="1.0.1037.0"/>
<PackageReference Include="Laerdal.McuMgr.Bindings.iOS" Version="1.0.1039.0"/>
</ItemGroup>

<ItemGroup Condition=" '$(IsNetXMacCatalyst)' == 'true' and '$(ShouldSkipMacCatalyst)' != 'true' ">
<PackageReference Include="Laerdal.McuMgr.Bindings.MacCatalyst" Version="1.0.1037.0"/>
<PackageReference Include="Laerdal.McuMgr.Bindings.MacCatalyst" Version="1.0.1039.0"/>
</ItemGroup>

<!-- NETSTANDARD -->
<ItemGroup Condition=" '$(IsNetStandard)' == 'true' ">
<PackageReference Include="Laerdal.McuMgr.Bindings.NetStandard" Version="1.0.1037.0"/>
<PackageReference Include="Laerdal.McuMgr.Bindings.NetStandard" Version="1.0.1039.0"/>
</ItemGroup>

</Project>
Loading
Loading