-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
73 lines (67 loc) · 1.92 KB
/
.gitlab-ci.yml
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
image: debian:stable
stages:
- deps
- build
cache:
key: toolchain
paths:
- mingw-w64-sysroot/
- EASTL-build/libEASTL.a
- EASTL-native-build/libEASTL.a
- CRT-build/*
- CRT-native-build/*
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 mingw-w64-sysroot/; fi
- pwd
- >
{ test -x mingw-w64-sysroot/x86_64/bin/x86_64-w64-mingw32-gcc && \
test -x mingw-w64-sysroot/x86_64/bin/x86_64-w64-mingw32-g++ && \
test -r CRT-build/libcrt.a && \
test -r CRT-build/libcrt.a && \
test -r CRT-build/libcxxrt.a && \
test -r CRT-build/libusercrt.a && \
test -r EASTL-build/libEASTL.a && \
test -r EASTL-native-build/libEASTL.a; } || \
{ make deps JOBS=${BUILDJOBS:-4} Q= || { cat mingw-w64-sysroot/build.log; false; }; }
stage: deps
only:
- main
makedeps-again:
script:
- git clean -df .
- git clean -dfX .
- git checkout .
- make deps JOBS=${BUILDJOBS:-4} Q= || { cat mingw-w64-sysroot/build.log; false; }
stage: deps
only:
- main
when: manual
build:
script:
- make help
- make help BUILD_NATIVE=1
- ls -alh mingw-w64-sysroot/x86_64/
- ls -alh mingw-w64-sysroot/x86_64/bin/
- pwd
- mkdir -p ./mingw-w64-build && touch ./mingw-w64-build/mingw-w64-build
- touch -m ./mingw-w64-sysroot/x86_64/bin/x86_64-w64-mingw32-gcc
- make -j1 examples WERROR=1 Q=
- make -j1 examples-install WERROR=1 Q= DESTDIR=$(realpath _install)
- ls -alh _install
artifacts:
expire_in: 1 week
paths:
- _install/
stage: build
only:
- main
dependencies:
- makedeps