-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
42 lines (38 loc) · 1012 Bytes
/
.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
before_script:
.build-template:
image: forthy42/gforth-builder-linux-$ARCH:$DISTRIBUTION
script:
- ./autogen.sh
- case $ARCH in
i386)
export BARCH=i686-pc-linux-gnu
;;
amd64)
export BARCH=x86_64-pc-linux-gnu
;;
arm64)
export BARCH=aarch64-pc-linux-gnu
;;
armel)
export BARCH=arm-pc-linux-gnueabi
;;
armhf)
export BARCH=arm-pc-linux-gnueabihf
;;
esac
- ./configure --with-extra-libs --host=$BARCH --build=$BARCH
- make distclean
- dpkg-buildpackage -uc -us -d -b -j1 -a$ARCH
- mkdir -p debian/$DISTRIBUTION/$ARCH
- rm -f debian/$DISTRIBUTION/$ARCH/*.deb
- mv ../*.deb debian/$DISTRIBUTION/$ARCH/
# The files which are to be made available in GitLab
artifacts:
paths:
- debian/$DISTRIBUTION/$ARCH/*.deb
build:
extends: .build-template
parallel:
matrix:
- DISTRIBUTION: [unstable, stable, oldstable]
ARCH: [amd64, i386]