Build and crossgen linux-arm shared framework in Docker container
This commit is contained in:
parent
341a648511
commit
d36a480253
|
|
@ -193,8 +193,10 @@ phases:
|
|||
/p:BuildNumber=$(Build.BuildNumber)
|
||||
displayName: Build linux-x64 runtime
|
||||
- script: >
|
||||
./build.sh
|
||||
--ci
|
||||
./dockerbuild.sh
|
||||
ubuntu
|
||||
/t:Prepare
|
||||
/t:GeneratePropsFiles
|
||||
/t:BuildSharedFx
|
||||
/p:SharedFxRID=linux-arm
|
||||
/p:BuildNumber=$(Build.BuildNumber)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
FROM microsoft/dotnet-buildtools-prereqs:ubuntu-14.04-cross-e435274-20180426002420
|
||||
|
||||
ARG USER
|
||||
ARG USER_ID
|
||||
ARG GROUP_ID
|
||||
|
||||
WORKDIR /code/build
|
||||
RUN mkdir -p "/home/$USER" && chown "${USER_ID}:${GROUP_ID}" "/home/$USER"
|
||||
ENV HOME "/home/$USER"
|
||||
|
||||
# Set the user to non-root
|
||||
USER $USER_ID:$GROUP_ID
|
||||
|
||||
# Skip package initilization
|
||||
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
||||
|
|
@ -18,8 +18,7 @@
|
|||
<OutputPath>$(ArtifactsConfigurationDir)$(SharedFxRid)\$(MSBuildProjectName)\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(RepositoryRoot)obj\fx\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
|
||||
|
||||
<CrossgenOutput Condition="'$(SharedFxRid)' == 'linux-arm'">false</CrossgenOutput>
|
||||
<CrossgenSymbolsOutput Condition=" '$(CrossgenOutput)' == 'false' OR '$(SharedFxRid)' == 'osx-x64'">false</CrossgenSymbolsOutput>
|
||||
<CrossgenSymbolsOutput Condition=" '$(CrossgenOutput)' == 'false' OR '$(SharedFxRid)' == 'osx-x64' OR '$(SharedFxRid)' == 'linux-arm'">false</CrossgenSymbolsOutput>
|
||||
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<NuspecFile>$(MSBuildThisFileDirectory)runtime.fx.nuspec</NuspecFile>
|
||||
|
|
|
|||
Loading…
Reference in New Issue