-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Create unified release build for macOS and Linux packages #8399
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
Merged
TravisEz13
merged 9 commits into
PowerShell:master
from
TravisEz13:merge_mac_and_linux_gh
Dec 5, 2018
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8d073b8
Add unified release build (without windows)
TravisEz13 74b8c31
convert builds to template
TravisEz13 2b8cbf4
remove unused linux yml
TravisEz13 f677617
Address PR feedback
TravisEz13 d6dc589
move createPowerShell.sh into a inline script
TravisEz13 77a7523
add alpine
TravisEz13 60a58c4
simplify linux release build template for simpler buildNames
TravisEz13 d160b27
simplify Linux build names
TravisEz13 685bea5
remove unused pool parameter from Linux builds
TravisEz13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: UnifiedPackageBuild-$(Build.BuildId) | ||
| trigger: | ||
| branches: | ||
| include: | ||
| - master | ||
| - release* | ||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| - release* | ||
|
|
||
| variables: | ||
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
| POWERSHELL_TELEMETRY_OPTOUT: 1 | ||
|
|
||
| # Set AzDevOps Agent to clean the machine after the end of the build | ||
| resources: | ||
| - repo: self | ||
| clean: true | ||
|
|
||
| jobs: | ||
| - template: templates/linux.yml | ||
| parameters: | ||
| buildName: deb | ||
|
|
||
| - template: templates/linux.yml | ||
| parameters: | ||
| buildName: rpm | ||
|
|
||
| - template: templates/linux.yml | ||
| parameters: | ||
| buildName: fxdependent | ||
|
|
||
| - template: templates/linux.yml | ||
| parameters: | ||
| buildName: alpine | ||
|
|
||
TravisEz13 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - template: templates/mac.yml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| parameters: | ||
| jobName: 'build_macOS' | ||
|
|
||
| jobs: | ||
| - job: ${{ parameters.jobName }} | ||
| displayName: Build macOS | ||
| condition: succeeded() | ||
| pool: Hosted macOS Preview | ||
| steps: | ||
| #- task: <task type name>@<version> | ||
| # inputs: | ||
| # <task specific inputs> | ||
| # displayName: '<display name of task>' | ||
| - powershell: | | ||
| tools/releaseBuild/setReleaseTag.ps1 -ReleaseTag $(ReleaseTagVar) -Variable "ReleaseTagVar" | ||
| displayName: 'Calculate Release Tag' | ||
| - powershell: | | ||
| # create folder | ||
| sudo mkdir /PowerShell | ||
|
|
||
| # make the current user the owner | ||
| sudo chown $env:USER /PowerShell | ||
| displayName: 'Create /PowerShell' | ||
| - powershell: | | ||
| Write-Host "##vso[task.setvariable variable=PowerShellRoot]/PowerShell" | ||
| git clone $env:BUILD_REPOSITORY_LOCALPATH /PowerShell | ||
| displayName: Clone PowerShell Repo to /PowerShell | ||
| - powershell: | | ||
| tools/releaseBuild/macOS/PowerShellPackageVsts.ps1 -location $(PowerShellRoot) -BootStrap | ||
| displayName: 'Bootstrap VM' | ||
| - powershell: | | ||
| Import-Module $(Build.SourcesDirectory)/build.psm1 -Force | ||
| New-NugetConfigFile -NugetFeedUrl $(AzDevOpsFeed) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedPAT) -FeedName AzDevOpsFeed -Destination "$(PowerShellRoot)/src/Modules" | ||
|
|
||
| if(-not (Test-Path "$(PowerShellRoot)/src/Modules/nuget.config")) | ||
| { | ||
| throw "nuget.config is not created" | ||
| } | ||
| displayName: 'Add nuget.config for AzDevOps feed for PSGallery modules ' | ||
| - powershell: | | ||
| $env:AZDEVOPSFEEDPAT = '$(AzDevOpsFeedPAT)' | ||
| $(Build.SourcesDirectory)/tools/releaseBuild/macOS/PowerShellPackageVsts.ps1 -ReleaseTag $(ReleaseTagVar) -Destination $(System.ArtifactsDirectory) -ExtraPackage "tar" -location $(PowerShellRoot) -Build | ||
| $env:AZDEVOPSFEEDPAT = $null | ||
| displayName: 'Build and Package' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.