2023-03-01 19:22:31 +01:00
|
|
|
image: "ubuntu:22.04"
|
2019-06-20 04:11:31 +02:00
|
|
|
|
2018-06-10 02:04:59 +02:00
|
|
|
variables:
|
2023-03-01 20:00:13 +01:00
|
|
|
GIT_STRATEGY: "clone"
|
2018-06-10 17:54:05 +02:00
|
|
|
GIT_SUBMODULE_STRATEGY: "recursive"
|
2018-06-10 01:11:01 +02:00
|
|
|
|
2023-03-01 20:44:37 +01:00
|
|
|
before_script:
|
2023-11-10 19:00:18 +01:00
|
|
|
# Disable the wget progress bar
|
|
|
|
- echo 'show-progress = off' >> ~/.wgetrc
|
2023-03-01 20:44:37 +01:00
|
|
|
- |
|
|
|
|
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
|
|
|
|
|
2018-06-10 17:54:05 +02:00
|
|
|
img:
|
2018-06-10 04:16:45 +02:00
|
|
|
script:
|
|
|
|
- |
|
|
|
|
source "$HOME/.cargo/env" &&
|
2024-01-11 19:37:27 +01:00
|
|
|
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash &&
|
|
|
|
cargo binstall --no-confirm --version 0.1.1 cargo-config &&
|
|
|
|
cargo binstall --no-confirm --version 1.16.0 just &&
|
|
|
|
cargo binstall --no-confirm --version 0.26.0 cbindgen &&
|
2023-03-01 21:27:09 +01:00
|
|
|
cargo build --manifest-path installer/Cargo.toml --release &&
|
2023-03-01 21:04:58 +01:00
|
|
|
make ci-img IMG_TAG=$CI_COMMIT_REF_NAME REPO_BINARY=1
|
2018-06-11 02:56:53 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/img/
|
|
|
|
expire_in: 1 week
|