]> git.proxmox.com Git - libgit2.git/blame - ci/setup-mingw-build.sh
Update changelog for 1.5.0+ds-1 release
[libgit2.git] / ci / setup-mingw-build.sh
CommitLineData
ad5611d8
TR
1#!/bin/sh
2
3set -ex
22a2d3d5
UG
4
5echo "##############################################################################"
6echo "## Downloading mingw"
7echo "##############################################################################"
8
9BUILD_TEMP=${BUILD_TEMP:=$TEMP}
10BUILD_TEMP=$(cygpath $BUILD_TEMP)
11
12case "$ARCH" in
13 amd64)
c25aa7cd 14 MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2021-05-04/mingw-x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";;
22a2d3d5 15 x86)
c25aa7cd 16 MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2021-05-04/mingw-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";;
22a2d3d5
UG
17esac
18
19if [ -z "$MINGW_URI" ]; then
20 echo "No URL"
21 exit 1
22fi
23
24mkdir -p "$BUILD_TEMP"
25
26curl -s -L "$MINGW_URI" -o "$BUILD_TEMP"/mingw-"$ARCH".zip
27unzip -q "$BUILD_TEMP"/mingw-"$ARCH".zip -d "$BUILD_TEMP"