Commit ac602c12 authored by Ezequiel Garcia's avatar Ezequiel Garcia
Browse files

Add gitlab-ci


Signed-off-by: Ezequiel Garcia's avatarEzequiel Garcia <ezequiel@collabora.com>
parent 887757e1
variables:
APT_OPTIONS: -y --allow-unauthenticated
ARCH: arm64
CROSS_COMPILE: aarch64-linux-gnu-
CCACHE_BASEDIR: $CI_PROJECT_DIR
CCACHE_DIR: $CI_PROJECT_DIR/ccache
stages:
- build
# Retry jobs after runner system failures
.retry: &retry
retry:
max: 2
when:
- runner_system_failure
build:
stage: build
image: debian:testing
cache:
paths:
- ccache
before_script:
- echo "deb http://deb.debian.org/debian testing main contrib non-free" > /etc/apt/sources.list
- echo "deb-src http://deb.debian.org/debian testing main contrib non-free" >> /etc/apt/sources.list
- apt-get update && apt-get $APT_OPTIONS build-dep linux && apt-get $APT_OPTIONS install devscripts ccache fakeroot gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
script:
- export PATH="/usr/lib/ccache:$PATH"
- ccache -s
- make imx_v8_defconfig
- sed -i '/CONFIG_IMX8M_BUSFREQ/d' .config
- sed -i '/CONFIG_V4L_TEST_DRIVERS/d' .config
- sed -i '/CONFIG_VIDEO_VIVID/d' .config
- echo "# CONFIG_IMX8M_BUSFREQ is not set" >> .config
- echo "CONFIG_V4L_TEST_DRIVERS=y" >> .config
- echo "CONFIG_VIDEO_VIVID=m" >> .config
- make -j$(nproc) bindeb-pkg
- mkdir artifacts && dcmd mv ../*.changes artifacts/
- pushd artifacts && for file in *.deb; do md5sum --tag $file > $file.hash; done && popd
artifacts:
name: debs
paths:
- $CI_PROJECT_DIR/artifacts/*.deb
- $CI_PROJECT_DIR/artifacts/*.hash
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