40 lines
980 B
YAML
40 lines
980 B
YAML
image: "ubuntu:22.04"
|
|
|
|
variables:
|
|
GIT_STRATEGY: "clone"
|
|
GIT_SUBMODULE_STRATEGY: "recursive"
|
|
|
|
before_script:
|
|
# Disable the wget progress bar
|
|
- echo 'show-progress = off' >> ~/.wgetrc
|
|
- |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update -qq &&
|
|
apt-get install -qq \
|
|
bison \
|
|
build-essential \
|
|
curl \
|
|
flex \
|
|
fuse \
|
|
git \
|
|
libfuse-dev \
|
|
nasm \
|
|
pkg-config \
|
|
texinfo \
|
|
wget &&
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
|
|
|
|
img:
|
|
script:
|
|
- |
|
|
source "$HOME/.cargo/env" &&
|
|
cargo install --version 0.1.1 cargo-config &&
|
|
cargo install --version 1.16.0 just &&
|
|
cargo install --version 0.26.0 cbindgen &&
|
|
cargo build --manifest-path installer/Cargo.toml --release &&
|
|
make ci-img IMG_TAG=$CI_COMMIT_REF_NAME REPO_BINARY=1
|
|
artifacts:
|
|
paths:
|
|
- build/img/
|
|
expire_in: 1 week
|