Skip to content

Commit

Permalink
Collect dist packages of jobs as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardiff committed Jan 29, 2018
1 parent bfc9f79 commit 85d895f
Showing 1 changed file with 37 additions and 24 deletions.
61 changes: 37 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ jobs:
git checkout params
cd x86_64
make CRYSTAL_VERSION=nightly CRYSTAL_SHA1=$CIRCLE_SHA1 release=true
- store_artifacts:
path: ~/distribution-scripts/x86_64/build
destination: dist_packages
- persist_to_workspace:
root: ../distribution-scripts/x86_64/
paths:
- build

dist_packages_darwin:
macos:
Expand Down Expand Up @@ -77,36 +78,48 @@ jobs:
bundle check || bundle install --binstubs
cd ../x86_64
make darwin CRYSTAL_VERSION=nightly CRYSTAL_SHA1=$CIRCLE_SHA1 release=true
- persist_to_workspace:
root: ../distribution-scripts/x86_64/
paths:
- build

dist_packages_collect:
docker:
- image: buildpack-deps:trusty
steps:
- attach_workspace:
at: /tmp/workspace
- store_artifacts:
path: ~/distribution-scripts/x86_64/build
path: /tmp/workspace/build
destination: dist_packages

workflows:
version: 2
build_all_platforms:
jobs:
# - build_linux:
# filters: &ci_filter
# branches:
# only:
# - master
# - /release\/.+/
# - /.*\bci\b.*/
# tags:
# only: /.*/
# - build_linux32:
# filters: *ci_filter
# - build_darwin:
# filters: *ci_filter
# - dist_packages_linux:
# filters: &nightly_filter
# branches:
# only:
# - ci/nightly
- dist_packages_darwin:
- build_linux:
filters: &ci_filter
branches:
only:
- master
- /release\/.+/
- /.*\bci\b.*/
tags:
only: /.*/
- build_linux32:
filters: *ci_filter
- build_darwin:
filters: *ci_filter
- dist_packages_linux:
filters: &nightly_filter
branches:
only:
- ci/nightly
# filters: *nightly_filter
- dist_packages_darwin:
filters: *nightly_filter
- dist_packages_collect:
filters: *nightly_filter
requires:
- dist_packages_linux
- dist_packages_darwin

0 comments on commit 85d895f

Please sign in to comment.