-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
74 lines (69 loc) · 1.49 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
74
stages:
- build
variables:
GIT_SUBMODULE_STRATEGY: recursive
build_debug_disabled:
stage: build
image: gcc:9.3.0
except:
- debian
# install bsdmainutils for hexdump
before_script:
- apt update && apt -y install bsdmainutils
script:
- make
artifacts:
paths:
- lz_header.bin
build_nixpkg_debug_disabled:
stage: build
except:
- debian
variables:
NIXPKG: "landing-zone"
LZ_COMMIT: "$CI_COMMIT_SHA"
LZ_TAG: "$CI_COMMIT_REF_NAME"
trigger:
project: trenchboot1/3mdeb/nixos-trenchboot-configs
branch: master
strategy: depend
build_debug_enabled:
stage: build
image: gcc:9.3.0
except:
- debian
# install bsdmainutils for hexdump
before_script:
- apt update && apt -y install bsdmainutils
script:
- make DEBUG=y
artifacts:
paths:
- lz_header.bin
build_nixpkg_debug_enabled:
stage: build
except:
- debian
variables:
NIXPKG: "landing-zone"
LZ_COMMIT: "$CI_COMMIT_SHA"
LZ_TAG: "$CI_COMMIT_REF_NAME"
trigger:
project: trenchboot1/3mdeb/nixos-trenchboot-configs
branch: master
strategy: depend
build_debian_pkg:
image: debian:stable-20200414
stage: build
only:
- debian
before_script:
- apt update && apt -y install build-essential dh-make git
- git submodule init && git submodule update
script:
- dpkg-buildpackage
- mkdir artifacts && mv ../landing-zone_*_amd64.deb artifacts/
- dpkg -c artifacts/*.deb
artifacts:
paths:
- artifacts/*