]> git.proxmox.com Git - libgit2.git/blob - ci/setup-mingw.sh
f5a882d2bdfbe053341136a14db9837693200220
[libgit2.git] / ci / setup-mingw.sh
1 #!/bin/sh -e
2
3 echo "##############################################################################"
4 echo "## Downloading mingw"
5 echo "##############################################################################"
6
7 BUILD_TEMP=${BUILD_TEMP:=$TEMP}
8 BUILD_TEMP=$(cygpath $BUILD_TEMP)
9
10 case "$ARCH" in
11 amd64)
12 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";;
13 x86)
14 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";;
15 esac
16
17 if [ -z "$MINGW_URI" ]; then
18 echo "No URL"
19 exit 1
20 fi
21
22 mkdir -p "$BUILD_TEMP"
23
24 curl -s -L "$MINGW_URI" -o "$BUILD_TEMP"/mingw-"$ARCH".zip
25 unzip -q "$BUILD_TEMP"/mingw-"$ARCH".zip -d "$BUILD_TEMP"