Add new file
This commit is contained in:
40
.gitlab-ci.yml
Normal file
40
.gitlab-ci.yml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
|
||||||
|
.build_template: &build_template
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- git checkout $CI_COMMIT_SHA
|
||||||
|
script:
|
||||||
|
- cargo build --release
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- target/release/setup
|
||||||
|
|
||||||
|
build_on_arch:
|
||||||
|
<<: *build_template
|
||||||
|
image: archlinux:latest
|
||||||
|
before_script:
|
||||||
|
- pacman -Syu --noconfirm
|
||||||
|
- pacman -S --noconfirm git rustup gcc
|
||||||
|
- rustup default stable
|
||||||
|
- *build_template.before_script
|
||||||
|
|
||||||
|
build_on_debian:
|
||||||
|
<<: *build_template
|
||||||
|
image: debian:stable
|
||||||
|
before_script:
|
||||||
|
- apt update && apt upgrade -y
|
||||||
|
- apt install -y git cargo
|
||||||
|
- *build_template.before_script
|
||||||
|
|
||||||
|
build_on_fedora:
|
||||||
|
<<: *build_template
|
||||||
|
image: fedora:latest
|
||||||
|
before_script:
|
||||||
|
- dnf up -y
|
||||||
|
- dnf install -y git cargo
|
||||||
|
- *build_template.before_script
|
||||||
Reference in New Issue
Block a user