.gitlab-ci.yml 845 Bytes
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1 2
image: "ubuntu:18.04"

Jeremy Soller's avatar
Jeremy Soller committed
3
variables:
Jeremy Soller's avatar
Jeremy Soller committed
4 5 6
  GIT_STRATEGY: "pull"
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_CHECKOUT: "true"
Jeremy Soller's avatar
Jeremy Soller committed
7

Jeremy Soller's avatar
Jeremy Soller committed
8 9
before_script:
 - |
10
    apt-get update -qq &&
Jeremy Soller's avatar
Jeremy Soller committed
11
    apt-get install -qq \
12
        bison \
Jeremy Soller's avatar
Jeremy Soller committed
13 14
        build-essential \
        curl \
Jeremy Soller's avatar
Jeremy Soller committed
15
        dosfstools \
16
        flex \
Jeremy Soller's avatar
Jeremy Soller committed
17 18 19 20 21 22 23 24
        fuse \
        genisoimage \
        git \
        gnupg \
        libfuse-dev \
        nasm \
        pkg-config \
        software-properties-common \
Jeremy Soller's avatar
Jeremy Soller committed
25
        syslinux \
Jeremy Soller's avatar
Jeremy Soller committed
26
        syslinux-utils \
Jeremy Soller's avatar
Jeremy Soller committed
27
        texinfo \
Jeremy Soller's avatar
Jeremy Soller committed
28
        wget &&
Jeremy Soller's avatar
Jeremy Soller committed
29
    curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
Jeremy Soller's avatar
Jeremy Soller committed
30

Jeremy Soller's avatar
Jeremy Soller committed
31
img:
Jeremy Soller's avatar
Jeremy Soller committed
32 33 34
    script:
     - |
        source "$HOME/.cargo/env" &&
Jeremy Soller's avatar
Jeremy Soller committed
35
        cargo install cargo-config cargo-xbuild xargo &&
Jeremy Soller's avatar
Jeremy Soller committed
36
        make ci-img IMG_TAG=$CI_COMMIT_REF_NAME
Jeremy Soller's avatar
Jeremy Soller committed
37 38 39 40
    artifacts:
        paths:
         - build/img/
        expire_in: 1 week