summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/librdkafka-2.1.0/packaging/mingw-w64/semaphoreci-build.sh
blob: 378545b443ae29db45b48b25a49acd7f1b619794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#

set -ex

if [[ $1 == "--static" ]]; then
    linkage="static"
    shift
else
linkage="dynamic"
fi

if [[ -z $1 ]]; then
    echo "Usage: $0 [--static] <relative-path-to-output-librdkafka.tgz>"
    exit 1
fi

archive="${PWD}/$1"

source ./packaging/mingw-w64/travis-before-install.sh

if [[ $linkage == "static" ]]; then
    ./packaging/mingw-w64/configure-build-msys2-mingw-static.sh
else
    ./packaging/mingw-w64/configure-build-msys2-mingw.sh
fi


./packaging/mingw-w64/run-tests.sh

pushd dest
tar cvzf $archive .
sha256sum $archive
popd