Skip to content

Commit

Permalink
Build just linux and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed May 2, 2019
1 parent 92186b3 commit 6918d1c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
80 changes: 40 additions & 40 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ stage('Checkout') {

stage('Build wrappers') {
def jobs = [
'iOS': {
nodeWithCleanup('macos') {
unstash 'dotnet-wrappers-source'
dir('wrappers') {
sh "./build-ios.sh --configuration=${configuration}"
}
stash includes: 'wrappers/build/**', name: 'ios-wrappers'
}
},
// 'iOS': {
// nodeWithCleanup('macos') {
// unstash 'dotnet-wrappers-source'
// dir('wrappers') {
// sh "./build-ios.sh --configuration=${configuration}"
// }
// stash includes: 'wrappers/build/**', name: 'ios-wrappers'
// }
// },
'macOS': {
nodeWithCleanup('osx || macos') {
unstash 'dotnet-wrappers-source'
Expand Down Expand Up @@ -83,31 +83,31 @@ stage('Build wrappers') {
// }
// }

for(platform in WindowsPlatforms) {
def localPlatform = platform
jobs["Windows ${localPlatform}"] = {
nodeWithCleanup('windows') {
unstash 'dotnet-wrappers-source'
dir('wrappers') {
powershell ".\\build.ps1 Windows -Configuration ${configuration} -Platforms ${localPlatform}"
}
stash includes: 'wrappers/build/**', name: "windows-wrappers-${localPlatform}"
}
}
}
// for(platform in WindowsPlatforms) {
// def localPlatform = platform
// jobs["Windows ${localPlatform}"] = {
// nodeWithCleanup('windows') {
// unstash 'dotnet-wrappers-source'
// dir('wrappers') {
// powershell ".\\build.ps1 Windows -Configuration ${configuration} -Platforms ${localPlatform}"
// }
// stash includes: 'wrappers/build/**', name: "windows-wrappers-${localPlatform}"
// }
// }
// }

for(platform in WindowsUniversalPlatforms) {
def localPlatform = platform
jobs["WindowsUniversal ${localPlatform}"] = {
nodeWithCleanup('windows') {
unstash 'dotnet-wrappers-source'
dir('wrappers') {
powershell ".\\build.ps1 WindowsStore -Configuration ${configuration} -Platforms ${localPlatform}"
}
stash includes: 'wrappers/build/**', name: "windowsuniversal-wrappers-${localPlatform}"
}
}
}
// for(platform in WindowsUniversalPlatforms) {
// def localPlatform = platform
// jobs["WindowsUniversal ${localPlatform}"] = {
// nodeWithCleanup('windows') {
// unstash 'dotnet-wrappers-source'
// dir('wrappers') {
// powershell ".\\build.ps1 WindowsStore -Configuration ${configuration} -Platforms ${localPlatform}"
// }
// stash includes: 'wrappers/build/**', name: "windowsuniversal-wrappers-${localPlatform}"
// }
// }
// }

parallel jobs
}
Expand All @@ -116,18 +116,18 @@ packageVersion = ''
stage('Package') {
nodeWithCleanup('windows && dotnet') {
unstash 'dotnet-source'
unstash 'ios-wrappers'
// unstash 'ios-wrappers'
unstash 'macos-wrappers'
unstash 'linux-wrappers'
// for(abi in AndroidABIs) {
// unstash "android-wrappers-${abi}"
// }
for(platform in WindowsPlatforms) {
unstash "windows-wrappers-${platform}"
}
for(platform in WindowsUniversalPlatforms) {
unstash "windowsuniversal-wrappers-${platform}"
}
// for(platform in WindowsPlatforms) {
// unstash "windows-wrappers-${platform}"
// }
// for(platform in WindowsUniversalPlatforms) {
// unstash "windowsuniversal-wrappers-${platform}"
// }

dir('Realm') {
def props = [ Configuration: configuration, PackageOutputPath: "${env.WORKSPACE}/Realm/packages", VersionSuffix: versionSuffix]
Expand Down
10 changes: 5 additions & 5 deletions Realm/Realm/Realm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
<EmbeddedResource Include="Properties\Realm.rd.xml" />
<Content Include="RealmWrappersReferences.props" Pack="true" PackagePath="build\Realm.props" />
<!-- iOS -->
<None Update="ios-dllmap.config" Pack="true" PackagePath="native\ios\$(AssemblyName).dll.config" />
<!-- <None Update="ios-dllmap.config" Pack="true" PackagePath="native\ios\$(AssemblyName).dll.config" />
<None Include="..\..\wrappers\build\iOS\$(Configuration)\realm-wrappers.framework\*">
<Pack>true</Pack>
<PackagePath>native\ios\universal\realm-wrappers.framework</PackagePath>
<Link>wrappers\iOS\realm-wrappers.framework\%(Filename).%(Extension)</Link>
</None>
</None> -->
<!-- macOS -->
<None Include="..\..\wrappers\build\Darwin\$(Configuration)\librealm-wrappers.dylib">
<Pack>true</Pack>
Expand Down Expand Up @@ -59,8 +59,7 @@
<PackagePath>native\android\x86_64</PackagePath>
<Link>wrappers\Android\x86_64\%(Filename).%(Extension)</Link>
</None>
-->
<!-- Windows -->
<!- Windows ->
<None Include="..\..\wrappers\build\Windows\$(Configuration)-Win32\realm-wrappers.dll">
<Pack>true</Pack>
<PackagePath>runtimes\win81-x86\native</PackagePath>
Expand All @@ -71,7 +70,7 @@
<PackagePath>runtimes\win81-x64\native</PackagePath>
<Link>wrappers\Windows\x64\%(Filename).%(Extension)</Link>
</None>
<!-- WindowsStore -->
<!- WindowsStore ->
<None Include="..\..\wrappers\build\WindowsStore\$(Configuration)-Win32\realm-wrappers.dll">
<Pack>true</Pack>
<PackagePath>runtimes\win10-x86\nativeassets\uap10.0</PackagePath>
Expand All @@ -87,6 +86,7 @@
<PackagePath>runtimes\win10-arm\nativeassets\uap10.0</PackagePath>
<Link>wrappers\WindowsStore\ARM\%(Filename).%(Extension)</Link>
</None>
-->
</ItemGroup>
<Import Project="..\AssemblyInfo.props " />
<Import Project="..\Realm.Fody\InSolutionWeaver.props" />
Expand Down

0 comments on commit 6918d1c

Please sign in to comment.