diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-09-16 19:23:52 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-09-16 20:09:01 (GMT) |
commit | 9671282bcc2c80d92ea955805d93cc7afc35bde9 (patch) | |
tree | fffa89d8253444321f08347ef8050b566897c350 | |
parent | 5138be9558ad04279a37695280cd195d07d9a40d (diff) | |
download | CMake-9671282bcc2c80d92ea955805d93cc7afc35bde9.zip CMake-9671282bcc2c80d92ea955805d93cc7afc35bde9.tar.gz CMake-9671282bcc2c80d92ea955805d93cc7afc35bde9.tar.bz2 |
gitlab-ci: add a job to upload macOS binaries
-rw-r--r-- | .gitlab-ci.yml | 15 | ||||
-rw-r--r-- | .gitlab/upload.yml | 18 |
2 files changed, 33 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2a83cb..f8d5292 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,11 +8,15 @@ include: - local: .gitlab/os-macos.yml - local: .gitlab/os-windows.yml + # Post-build steps + - local: .gitlab/upload.yml + stages: - build - test - package - test-ext + - upload ################################################################################ # Job declarations @@ -188,6 +192,17 @@ package:macos: needs: - build:fedora31-sphinx-package +upload:macos: + extends: + - .rsync_upload + - .run_only_for_package + dependencies: + - package:macos + needs: + - package:macos + variables: + RSYNC_DESTINATION: dev + # Windows builds build:windows-vs2019-x64-ninja: diff --git a/.gitlab/upload.yml b/.gitlab/upload.yml new file mode 100644 index 0000000..924e7de --- /dev/null +++ b/.gitlab/upload.yml @@ -0,0 +1,18 @@ +# Steps for uploading artifacts + +.rsync_upload: + image: "fedora:32" + stage: upload + tags: + - docker + - linux + - build + environment: + name: rsync-upload + + script: + - ls build/ + - dnf install -y --setopt=install_weak_deps=False rsync openssh-clients + - chmod 400 $RSYNC_BINARY_KEY + - ssh-keygen -y -f $RSYNC_BINARY_KEY > $RSYNC_BINARY_KEY.pub + - rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no" build/ kitware@public.kitware.com:$RSYNC_DESTINATION/ |