Update .gitlab-ci.yml file
This commit is contained in:
@@ -6,8 +6,6 @@ variables:
|
|||||||
|
|
||||||
.build_template: &build_template
|
.build_template: &build_template
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
|
||||||
- git checkout $CI_COMMIT_SHA
|
|
||||||
script:
|
script:
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -21,7 +19,7 @@ build_on_arch:
|
|||||||
- pacman -Syu --noconfirm
|
- pacman -Syu --noconfirm
|
||||||
- pacman -S --noconfirm git rustup gcc
|
- pacman -S --noconfirm git rustup gcc
|
||||||
- rustup default stable
|
- rustup default stable
|
||||||
- *build_template.before_script
|
- git checkout $CI_COMMIT_SHA
|
||||||
|
|
||||||
build_on_debian:
|
build_on_debian:
|
||||||
<<: *build_template
|
<<: *build_template
|
||||||
@@ -29,7 +27,7 @@ build_on_debian:
|
|||||||
before_script:
|
before_script:
|
||||||
- apt update && apt upgrade -y
|
- apt update && apt upgrade -y
|
||||||
- apt install -y git cargo
|
- apt install -y git cargo
|
||||||
- *build_template.before_script
|
- git checkout $CI_COMMIT_SHA
|
||||||
|
|
||||||
build_on_fedora:
|
build_on_fedora:
|
||||||
<<: *build_template
|
<<: *build_template
|
||||||
@@ -37,4 +35,4 @@ build_on_fedora:
|
|||||||
before_script:
|
before_script:
|
||||||
- dnf up -y
|
- dnf up -y
|
||||||
- dnf install -y git cargo
|
- dnf install -y git cargo
|
||||||
- *build_template.before_script
|
- git checkout $CI_COMMIT_SHA
|
||||||
Reference in New Issue
Block a user