blob: 77fc8232567b05fbc633eccc4f576dd6410967d8 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
image: samthursfield/buildstream:0.1-20170621.1
before_script:
# Update to latest BuildStream
- |
cd ~/buildstream
git pull origin master
pip3 install .
cd -
# Diagnostics
- |
mount
df -h
whoami
# Work around https://github.com/fedora-cloud/docker-brew-fedora/issues/14
- export LANG="C.UTF-8"
- export LC_ALL="C.UTF-8"
# Store cache in the shared Docker volume
- export XDG_CACHE_HOME=/cache
# Private key stored as a protected variable that allows pushing to
# ostree@ostree.baserock.org
- |
if [ -z "$baserock_ostree_cache_private_key" ]; then
echo >&2 "Private key for ostree.baserock.org is not available."
exit 1
fi
mkdir -p ~/.ssh
echo "$baserock_ostree_cache_private_key" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
# Trust the host key of the cache server.
- ssh-keyscan -p 22200 ostree.baserock.org >> ~/.ssh/known_hosts
# Enable push and pull for Baserock artifact cache
- |
mkdir -p ~/.config
echo "artifacts:" > ~/.config/buildstream.conf
echo " pull-url: https://ostree.baserock.org/cache/" >> ~/.config/buildstream.conf
echo " push-url: ostree@ostree.baserock.org:cache" >> ~/.config/buildstream.conf
echo " push-port: 22200" >> ~/.config/buildstream.conf
cat ~/.config/buildstream.conf
stages:
- build-system
- cross-sysroot
build-build-system:
stage: build-system
script:
- bst --colors build systems/build-system-content.bst
# Tests cross building a toolchain and sysroot for each supported non-x86_64 architecture.
build-sysroot-armv8b64:
stage: cross-sysroot
script:
- bst --colors --target-arch=armv8b64 build gnu-toolchain/stage2.bst
build-sysroot-armv8l64:
stage: cross-sysroot
script:
- bst --colors --target-arch=armv8l64 build gnu-toolchain/stage2.bst
build-sysroot-ppc64b:
stage: cross-sysroot
script:
- bst --colors --target-arch=ppc64b build gnu-toolchain/stage2.bst
build-sysroot-ppc64l:
stage: cross-sysroot
script:
- bst --colors --target-arch=ppc64l build gnu-toolchain/stage2.bst
|