Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
buildargs
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt committed Aug 5, 2022
1 parent d57b39c commit 7c4ad53
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions eng/pipelines/templates/build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ jobs:
- ${{ if eq(parameters.osGroup, 'Windows') }}:
- _signingArgs: -sign
/p:DotNetSignType=$(_SignType)
- _buildargs: -ci -c $(_BuildConfig) $(_testBuildArg) $(_signingArgs) $(_officialBuildArgs) /p:TargetPlatform=${{ parameters.archType }}
- ${{ if eq(parameters.archType, 'arm64') }}:
- _buildScript: docker run --platform linux/arm64 --volume $BUILD_REPOSITORY_LOCALPATH:/msquic -t mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-arm64v8-20220803130954-bfcd90a bash -c "apt-get update && apt-get install -y wget curl && curl -L -o /tmp/pwsh.tgz https://github.com/PowerShell/PowerShell/releases/download/v7.2.5/powershell-7.2.5-linux-arm64.tar.gz && tar xfz /tmp/pwsh.tgz -C /usr/local/bin/ && curl -o /tmp/cmake.tgz https://cmake.org/files/v3.23/cmake-3.23.1-linux-aarch64.tar.gz && tar xfz /tmp/cmake.tgz -C /usr/local/bin/ && /msquic/build.sh " && echo
- _buildScript: docker run --platform linux/arm64 --volume $BUILD_REPOSITORY_LOCALPATH:/msquic -t mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-arm64v8-20220803130954-bfcd90a bash -c "apt-get update && apt-get install -y wget curl && curl -L -o /tmp/pwsh.tgz https://github.com/PowerShell/PowerShell/releases/download/v7.2.5/powershell-7.2.5-linux-arm64.tar.gz && tar xfz /tmp/pwsh.tgz -C /usr/local/bin/ && curl -o /tmp/cmake.tgz https://cmake.org/files/v3.23/cmake-3.23.1-linux-aarch64.tar.gz && tar xfz /tmp/cmake.tgz -C /usr/local/bin/ && /msquic/build.sh $(_buildargs)" && echo

steps:
- checkout: self
Expand All @@ -95,14 +96,8 @@ jobs:
- script: sudo gem install fpm
displayName: Install fpm

- script: $(_buildScript)
-ci
-c $(_BuildConfig)
$(_testBuildArg)
$(_signingArgs)
$(_officialBuildArgs)
/p:TargetPlatform=${{ parameters.archType }}
displayName: Build and Publish
- script: $(_buildScript) $(_buildargs)
displayName: Build binaries

- ${{ if ne(parameters.osGroup, 'Windows') }}:
- script: ./scripts/make-packages.sh -output $(_outputPath)
Expand Down

0 comments on commit 7c4ad53

Please sign in to comment.