Skip to content

Commit 443df2d

Browse files
committed
azure: replace mingw setup with bash
We're about to phase out our Powershell scripts as Azure Pipelines does in fact support Bash scripts on all platforms. As a preparatory step, let's replace our MinGW setup script with a Bash script.
1 parent d8e85d5 commit 443df2d

File tree

4 files changed

+19
-29
lines changed

4 files changed

+19
-29
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
displayName: 'Windows (amd64; MinGW)'
9292
pool: Hosted
9393
steps:
94-
- powershell: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.ps1'
94+
- bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
9595
displayName: Setup
9696
env:
9797
TEMP: $(Agent.TempDirectory)
@@ -106,7 +106,7 @@ jobs:
106106
displayName: 'Windows (x86; MinGW)'
107107
pool: Hosted
108108
steps:
109-
- powershell: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.ps1'
109+
- bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
110110
displayName: Setup
111111
workingDirectory: '$(Build.BinariesDirectory)'
112112
env:

azure-pipelines/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
displayName: 'Windows (amd64; MinGW)'
9595
pool: Hosted
9696
steps:
97-
- powershell: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.ps1'
97+
- bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
9898
displayName: Setup
9999
env:
100100
TEMP: $(Agent.TempDirectory)
@@ -110,7 +110,7 @@ jobs:
110110
displayName: 'Windows (x86; MinGW)'
111111
pool: Hosted
112112
steps:
113-
- powershell: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.ps1'
113+
- bash: . '$(Build.SourcesDirectory)\azure-pipelines\setup-mingw.sh'
114114
displayName: Setup
115115
workingDirectory: '$(Build.BinariesDirectory)'
116116
env:

azure-pipelines/setup-mingw.ps1

Lines changed: 0 additions & 25 deletions
This file was deleted.

azure-pipelines/setup-mingw.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh -e
2+
3+
echo "##############################################################################"
4+
echo "## Downloading mingw"
5+
echo "##############################################################################"
6+
7+
case "$ARCH" in
8+
amd64)
9+
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";;
10+
x86)
11+
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";;
12+
esac
13+
14+
curl -s -L "$MINGW_URI" -o "$TEMP"/mingw-"$ARCH".zip
15+
unzip -q "$TEMP"/mingw-"$ARCH".zip -d "$TEMP"

0 commit comments

Comments
 (0)