-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
49 lines (44 loc) · 1.03 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
image: robertcnelson/debian-bookworm-beagle-devscripts:latest
stages:
- build
- test
before_script:
- apt-get update -qq && apt-get install -y -qq gcc-pru binutils-pru devscripts build-essential lintian git
build-distcheck:
tags:
- docker-arm64
stage: build
artifacts:
paths:
- build/gnuprumcu-*.tar.gz
expire_in: 1 week
script:
- autoreconf -vfi
- mkdir build
- cd build
- ../configure --prefix=/usr/local --host=pru
- make
- export DISTCHECK_CONFIGURE_FLAGS="--host=pru --disable-toolchain-check" ; make distcheck
build-debian-package:
tags:
- docker-arm64
stage: build
artifacts:
paths:
- ./*.deb
expire_in: 1 week
script:
- debuild -i -us -uc -b
- ls ../*.deb
- cp ../gnuprumcu*.deb .
test-compile-examples:
tags:
- docker-arm64
stage: test
dependencies:
- build-debian-package
script:
- dpkg -i ./gnuprumcu*.deb
- git clone --depth=1 https://github.com/dinuxbg/pru-gcc-examples
- cd pru-gcc-examples/
- make check-build