-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add ccache to all platforms. - Adjust AZDO pipeline yamls. - Add PS1 to install install ccache.
- Loading branch information
1 parent
fc168ed
commit a17508e
Showing
9 changed files
with
142 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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,33 @@ | ||
# Copyright (c) .NET Foundation and Contributors | ||
# See LICENSE file in the project root for full license information. | ||
|
||
steps: | ||
- task: Cache@2 | ||
displayName: "Cache ccache" | ||
inputs: | ||
key: "ccache | 4_10_2" | ||
path: 'C:\Program Files\ccache' | ||
cacheHitVar: CCACHE_CACHE_RESTORED | ||
|
||
- task: PowerShell@2 | ||
displayName: Downloading Ccache | ||
condition: ne(variables.CCACHE_CACHE_RESTORED, 'true') | ||
inputs: | ||
targetType: "inline" | ||
script: | | ||
$url = "https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-windows-x86_64.zip" | ||
$output = "$(Agent.TempDirectory)\ccache.zip" | ||
(New-Object Net.WebClient).DownloadFile($url, $output) | ||
errorActionPreference: "stop" | ||
failOnStderr: true | ||
|
||
- task: ExtractFiles@1 | ||
displayName: Install Ccache | ||
condition: ne(variables.CCACHE_CACHE_RESTORED, 'true') | ||
inputs: | ||
archiveFilePatterns: '$(Agent.TempDirectory)\ccache.zip' | ||
destinationFolder: '$(Agent.TempDirectory)\ccache' | ||
|
||
- script: echo "##vso[task.prependpath]$(Agent.TempDirectory)\ccache" | ||
displayName: Add Ccache to PATH | ||
condition: succeeded() |
This file contains 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