summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 94a4e54f557944793925496a2cd786aae2a6ac71 (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
image: samthursfield/buildstream:0.1-20170627.1

cache:
  paths:
    - cache/buildstream/sources/

before_script:
  # Update to latest BuildStream commit
  - cd ~/buildstream
  - git remote update origin
  - git reset --hard origin/master
  - pip3 install .
  - cd -

  # 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 project directory
  - mkdir -p "$(pwd)/cache"
  - export XDG_CACHE_HOME="$(pwd)/cache"

stages:
  - build

x86_64-native:
  stage: build
  script:
  - bst --colors build gnu-toolchain.bst

armv8b64-cross:
  stage: build
  script:
  - bst --colors build --target-arch=armv8l64 gnu-toolchain/stage2.bst

armv8l64-cross:
  stage: build
  script:
  - bst --colors build --target-arch=armv8l64 gnu-toolchain/stage2.bst

ppc64b-cross:
  stage: build
  script:
  - bst --colors build --target-arch=ppc64b gnu-toolchain/stage2.bst

ppc64l-cross:
  stage: build
  script:
  - bst --colors build --target-arch=ppc64l gnu-toolchain/stage2.bst