Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
2d22fffc
Commit
2d22fffc
authored
Jul 26, 2018
by
Edward Thomson
Committed by
Patrick Steinhardt
Oct 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: use a single setup script for mingw
(cherry picked from commit
f7bb4ff8
)
parent
a9d1f737
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
26 deletions
+13
-26
.vsts-ci.yml
+4
-2
ci/setup-mingw-x86.ps1
+0
-20
ci/setup-mingw.ps1
+9
-4
No files found.
.vsts-ci.yml
View file @
2d22fffc
...
@@ -110,10 +110,11 @@ phases:
...
@@ -110,10 +110,11 @@ phases:
queue
:
queue
:
name
:
Hosted
name
:
Hosted
steps
:
steps
:
-
powershell
:
. '$(Build.SourcesDirectory)\ci\setup-mingw
-amd64
.ps1'
-
powershell
:
. '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
displayName
:
Setup
displayName
:
Setup
env
:
env
:
TEMP
:
$(Agent.TempDirectory)
TEMP
:
$(Agent.TempDirectory)
ARCH
:
amd64
-
powershell
:
. '$(Build.SourcesDirectory)\ci\build.ps1'
-
powershell
:
. '$(Build.SourcesDirectory)\ci\build.ps1'
displayName
:
Build
displayName
:
Build
env
:
env
:
...
@@ -127,10 +128,11 @@ phases:
...
@@ -127,10 +128,11 @@ phases:
queue
:
queue
:
name
:
Hosted
name
:
Hosted
steps
:
steps
:
-
powershell
:
. '$(Build.SourcesDirectory)\ci\setup-mingw
-x86
.ps1'
-
powershell
:
. '$(Build.SourcesDirectory)\ci\setup-mingw.ps1'
displayName
:
Setup
displayName
:
Setup
env
:
env
:
TEMP
:
$(Agent.TempDirectory)
TEMP
:
$(Agent.TempDirectory)
ARCH
:
x86
-
powershell
:
. '$(Build.SourcesDirectory)\ci\build.ps1'
-
powershell
:
. '$(Build.SourcesDirectory)\ci\build.ps1'
displayName
:
Build
displayName
:
Build
env
:
env
:
...
...
ci/setup-mingw-x86.ps1
deleted
100644 → 0
View file @
a9d1f737
Set
-StrictMode -Version Latest
$ErrorActionPreference
=
"Stop"
$PSDefaultParameterValues
[
'*:ErrorAction'
]
=
'Stop'
[
Net.ServicePointManager]::SecurityProtocol
=
[
Net.SecurityProtocolType]::Tls12
[
Reflection.Assembly]::LoadWithPartialName
(
"System.IO.Compression.FileSystem"
)
;
Write-Host
"##############################################################################"
Write-Host
"## Downloading mingw"
Write-Host
"##############################################################################"
$mingw_uri
=
"https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip"
$platform
=
"x86"
$wc
=
New-Object
net.webclient
$wc
.Downloadfile
(
$mingw_uri
,
"
${
Env
:TEMP
}
/mingw-
${
platform
}
.zip"
)
[
System.IO.Compression.ZipFile]::ExtractToDirectory
(
"
${
Env
:TEMP
}
/mingw-
${
platform
}
.zip"
,
$Env
:TEMP
)
ci/setup-mingw
-amd64
.ps1
→
ci/setup-mingw.ps1
View file @
2d22fffc
...
@@ -11,10 +11,15 @@ Write-Host "####################################################################
...
@@ -11,10 +11,15 @@ Write-Host "####################################################################
Write-Host
"## Downloading mingw"
Write-Host
"## Downloading mingw"
Write-Host
"##############################################################################"
Write-Host
"##############################################################################"
$mingw_uri
=
"https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-x86_64-8.1.0-release-win32-seh-rt_v6-rev0.zip"
if
(
$env
:ARCH -eq
"amd64"
)
{
$platform
=
"x86_64"
$mingw_uri
=
"https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-x86_64-8.1.0-release-win32-seh-rt_v6-rev0.zip"
$platform
=
"x86_64"
}
else
{
$mingw_uri
=
"https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip"
$platform
=
"x86"
}
$wc
=
New-Object
net.webclient
$wc
=
New-Object
net.webclient
$wc
.Downloadfile
(
$mingw_uri
,
"
${
Env
:TEMP
}
/mingw-
${
platform
}
.zip"
)
$wc
.Downloadfile
(
$mingw_uri
,
"
${
Env
:TEMP
}
/mingw-
${
Env
:ARCH
}
.zip"
)
[
System.IO.Compression.ZipFile]::ExtractToDirectory
(
"
${
Env
:TEMP
}
/mingw-
${
platform
}
.zip"
,
$Env
:TEMP
)
[
System.IO.Compression.ZipFile]::ExtractToDirectory
(
"
${
Env
:TEMP
}
/mingw-
${
Env
:ARCH
}
.zip"
,
$Env
:TEMP
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment