summarylogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorTimothy Redaelli2019-07-08 01:27:30 +0200
committerTimothy Redaelli2019-07-08 01:27:30 +0200
commitef80a9614092ede16b0ad7610097c2b111593845 (patch)
tree87805f6d973c0aa79bee47df8c99222475f1ee08 /.gitlab-ci.yml
parente00cd9caaced99d6998c5100abff401732690c5e (diff)
downloadaur-ef80a9614092ede16b0ad7610097c2b111593845.tar.gz
Misc fixes
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 030e49769ebf..3d859413055a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,11 @@
-pages:
+build:
image: archlinux/base
stage: deploy
+ retry: 1
+ cache:
+ paths:
+ - cargo/
artifacts:
- name: "$CI_COMMIT_REF_NAME"
paths:
- '*.pkg.tar.xz'
before_script:
@@ -13,11 +16,13 @@ pages:
- pacman-db-upgrade
- update-ca-trust
- useradd -m -G wheel build
+ - chown -R build .
- chgrp -R build .
- 'echo -e "Cmnd_Alias\tBUILDERS = /usr/sbin/pacman, /usr/sbin/makepkg, /usr/bin/pacman, /usr/bin/makepkg, /usr/bin/multilib-build, /usr/bin/extra-x86_64-build, /usr/bin/arch-nspawn\nbuild\tALL = NOPASSWD: BUILDERS" >> /etc/sudoers.d/build'
- chmod 0440 /etc/sudoers.d/build
- chown root:root /etc/sudoers.d/build
script:
- - sudo -u build makepkg --log --syncdeps --force --noconfirm --noprogressbar
+ - 'du -sh cargo src/electrs/target || :'
+ - sudo -u build makepkg --log --syncdeps --force --noconfirm --noprogressbar CARGO_HOME="$CI_PROJECT_DIR/cargo"
- 'find . -iname "*.pkg.tar.xz" -exec namcap --machine-readable {} \;'