aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: cbd90c8a6ee8fcfd8d473b2079158b30b094d15e (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
image: debian:stable

stages:
  - deps
  - build

cache:
  key: toolchain
  paths:
    - x86_64-w64-mingw32/

before_script:
  - export DEBIAN_FRONTEND=noninteractive
  - apt-get update -qq
  - >
      apt-get install -y -qq \
        coreutils wget tar gzip bzip2 patch cmake make binutils gcc g++ autoconf automake flex bison texinfo \
        git subversion curl xz-utils osslsigncode

makedeps:
  script:
    - if [ "x${FORCE_TOOLCHAIN_REBUILD:-}" != "x" ]; then rm -rf x86_64-w64-mingw32/; fi
    - pwd
    - >
        { test -x x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc && \
          test -x x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++; } || \
        { make deps || cat bld/build.log; }
  stage: deps
  only:
    - master

makedeps-again:
  script:
    - git clean -df .
    - git clean -dfX .
    - git checkout .
    - make deps || cat bld/build.log
  stage: deps
  only:
    - master
  when: manual
  allow_failure: true

build:
  script:
    - ls -alh x86_64-w64-mingw32/
    - ls -alh x86_64-w64-mingw32/bin/
    - pwd
    - >
        make all WERROR=1 Q= \
        CC=x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc \
        DDK_INCLUDE_DIR=x86_64-w64-mingw32/x86_64-w64-mingw32/include/ddk
    - >
        make install WERROR=1 Q= \
        CC=x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc \
        DDK_INCLUDE_DIR=x86_64-w64-mingw32/x86_64-w64-mingw32/include/ddk \
        DESTDIR=_install/
  artifacts:
    expire_in: 1 week
    paths:
      - _install/
  stage: build
  only:
    - master
  dependencies:
    - makedeps