.gitlab-ci.yml 1.09 KB
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1
variables:
Jeremy Soller's avatar
Jeremy Soller committed
2 3 4
  GIT_STRATEGY: "pull"
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_CHECKOUT: "true"
Jeremy Soller's avatar
Jeremy Soller committed
5

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

Jeremy Soller's avatar
Jeremy Soller committed
29
img:
Jeremy Soller's avatar
Jeremy Soller committed
30 31 32
    script:
     - |
        source "$HOME/.cargo/env" &&
Jeremy Soller's avatar
Jeremy Soller committed
33
        rustup update &&
Jeremy Soller's avatar
Jeremy Soller committed
34
        rustup component add rust-src &&
Jeremy Soller's avatar
Jeremy Soller committed
35
        cargo install cargo-config xargo &&
36
        pushd bootloader-efi &&
Jeremy Soller's avatar
Jeremy Soller committed
37
        rustup update &&
38
        rustup component add rust-src &&
39
        mkdir -p "$HOME/.rustup/toolchains/nightly-2017-11-29-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin" &&
40
        popd &&
Jeremy Soller's avatar
Jeremy Soller committed
41
        make ci-img IMG_TAG=$CI_COMMIT_REF_NAME
Jeremy Soller's avatar
Jeremy Soller committed
42 43 44 45
    artifacts:
        paths:
         - build/img/
        expire_in: 1 week