diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c95c5f..2e84d14 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,8 +6,6 @@ variables: .build_template: &build_template stage: build - before_script: - - git checkout $CI_COMMIT_SHA script: - cargo build --release artifacts: @@ -21,7 +19,7 @@ build_on_arch: - pacman -Syu --noconfirm - pacman -S --noconfirm git rustup gcc - rustup default stable - - *build_template.before_script + - git checkout $CI_COMMIT_SHA build_on_debian: <<: *build_template @@ -29,7 +27,7 @@ build_on_debian: before_script: - apt update && apt upgrade -y - apt install -y git cargo - - *build_template.before_script + - git checkout $CI_COMMIT_SHA build_on_fedora: <<: *build_template @@ -37,4 +35,4 @@ build_on_fedora: before_script: - dnf up -y - dnf install -y git cargo - - *build_template.before_script \ No newline at end of file + - git checkout $CI_COMMIT_SHA \ No newline at end of file