-
Notifications
You must be signed in to change notification settings - Fork 1
/
Recipe2
41 lines (27 loc) · 867 Bytes
/
Recipe2
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
#!/bin/bash
# Run this file inside an Ubuntu Bionic Docker image
# Run this file after Recipe1, loading the image generated by the previous job
#Set architecture: amd64, i386
ARCH=$1
set -e # Halt on error
set -x # Be verbose
cd qt5source
mkdir build
cd build
# Configure Qt WebEngine
/qt5/bin/qmake ../qtwebengine -- --webengine-spellchecker=no
# -opengl dynamic ?
export NINJAJOBS=-j$(($(nproc)))
timeout 300m make -j $(($(nproc))) || true
# make install -j $(($(nproc)+1))
# echo 'Compilation and installation completed'
# Allow non-root users to access the files
# chmod -R a+rwx /qt5
# tar -zcf qt5linux_${ARCH}.tar.gz /qt5
# mv qt5linux_${ARCH}.tar.gz /output
# chmod -R a+rwx /output
# Cleanup Docker image
apt-get clean autoclean
apt-get autoremove --purge -y
rm -rf /tmp/* /var/{cache,log,backups}/* /var/lib/apt/*
# echo 'Recipe2 completed'