forked from dosemu2/dosemu2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci_build.sh
executable file
·43 lines (34 loc) · 1.11 KB
/
ci_build.sh
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
39
40
41
42
43
#!/bin/sh
set -e
LOCALFDPP="localfdpp.git"
LOCALFDPPINST="$(pwd)/localfdpp"
FDPPBRANCH=""
test -d ${LOCALFDPP} && exit 1
git clone --depth 1 --no-single-branch https://github.com/dosemu2/fdpp.git ${LOCALFDPP}
(
cd ${LOCALFDPP} || exit 2
[ -z "$FDPPBRANCH" ] || git checkout "$FDPPBRANCH"
git config user.email "cibuild@example.com"
git config user.name "CI build"
git tag tmp -m "make git-describe happy"
echo "DEBUG_MODE = 1" > local.mak
echo "EXTRA_DEBUG = 1" >> local.mak
echo "USE_UBSAN = 1" >> local.mak
# Install the build dependancies based FDPP's debian/control file
sudo add-apt-repository ppa:stsp-0/nasm-segelf
sudo add-apt-repository ppa:stsp-0/thunk-gen
sudo apt update -q
mk-build-deps --install --root-cmd sudo
make
sudo make install
)
# Install the build dependancies based Dosemu's debian/control file
sudo add-apt-repository -y -c main -c main/debug ppa:dosemu2/ppa
mk-build-deps --install --root-cmd sudo
sudo apt remove -y fdpp
if [ "${SUBTYPE}" = "asan" ] ; then
sed -i 's/asan off/asan on/g' compiletime-settings.devel
fi
./default-configure -d
make
sudo make install