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
9e588060
Commit
9e588060
authored
Jul 14, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: scripts to setup mingw build environment
parent
87342404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
ci/setup-mingw-amd64.ps1
+20
-0
ci/setup-mingw-x86.ps1
+20
-0
No files found.
ci/setup-mingw-amd64.ps1
0 → 100644
View file @
9e588060
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-x86_64-8.1.0-release-win32-seh-rt_v6-rev0.zip"
$platform
=
"x86_64"
$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-x86.ps1
0 → 100644
View file @
9e588060
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
)
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