Commit 27ff339b authored by Guido Gunther's avatar Guido Gunther

Add gitlab-ci

parent 3e436d26
stages:
- build
.buster_vars: &buster_vars
variables:
CI_REPO: "deb [arch=amd64,arm64] http://ci.puri.sm/ scratch librem5"
DIST: buster
DEPS: libfdt-dev arm-trusted-firmware:arm64 libc6-dev:arm64 gcc-aarch64-linux-gnu
.build_step: &build_step
script:
- DEB_BUILD_PROFILES="pkg.uboot.subarch.imx" dpkg-buildpackage -uc -us -B --host-arch=arm64
- rm -rf debian/output/
- mkdir debian/output/
- cp ../*.deb debian/output
before_script:
- export DEBIAN_FRONTEND=noninteractive
- dpkg --add-architecture arm64
- apt-get -y update
- apt-get -y install wget ca-certificates gnupg eatmydata
- echo "Using CI repo ${CI_REPO}"
- echo "$CI_REPO" > /etc/apt/sources.list.d/ci.list
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
- echo "deb [arch=amd64,arm64] http://deb.debian.org/debian/ buster main" > /etc/apt/sources.list.d/cross.list
- eatmydata apt-get -y update
- eatmydata apt-get -y build-dep .
- eatmydata apt-get -y install $DEPS
.tags: &tags
tags:
- librem5
build:cross:debian-buster:
<<: *tags
stage: build
image: debian:buster
<<: *buster_vars
<<: *build_step
artifacts:
paths:
- debian/output
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment