Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Deploy the tool automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Apr 4, 2018
1 parent 95a5ae3 commit 261bb72
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 9 deletions.
60 changes: 54 additions & 6 deletions .circleci/config.yml
Expand Up @@ -16,8 +16,18 @@ jobs:
- save_cache:
key: stack-work-x86_64-linux
paths: "~/.stack"
- store-artifacts:
path: ".stack-work/install/x86_64-linux/lts-10.0/8.2.2/bin/ghc-artifact-collector"
- persist_to_workspace:
root: ~/project/.stack-work/install/x86_64-linux/lts-10.0/8.2.2/bin/
paths:
- ghc-artifact-collector

x86_64-linux-deploy:
docker:
- image: haskell:8.2
steps:
- attach_workspace:
at: /tmp
- run: /tmp/ghc-artifact-collector --as-tool ghc-artifact-collector-x86_64-linux /tmp/ghc-artifact-collector

i386-linux-build:
docker:
Expand All @@ -36,8 +46,18 @@ jobs:
- save_cache:
key: stack-work-i386-linux
paths: "~/.stack"
- store-artifacts:
path: ".stack-work/install/i386-linux/lts-10.0/8.2.2/bin/ghc-artifact-collector"
- persist_to_workspace:
root: ~/project/.stack-work/install/i386-linux/lts-10.0/8.2.2/bin/
paths:
- ghc-artifact-collector

i386-linux-deploy:
docker:
- image: ghcci/i386-linux:0.0.1
steps:
- attach_workspace:
at: /tmp
- run: /tmp/ghc-artifact-collector --as-tool ghc-artifact-collector-x86_64-linux /tmp/ghc-artifact-collector

x86_64-darwin-build:
macos:
Expand All @@ -53,13 +73,41 @@ jobs:
- save_cache:
key: stack-work-x86_64-darwin
paths: "~/.stack"
- store-artifacts:
path: ".stack-work/install/x86_64-osx/lts-10.0/8.2.2/bin/ghc-artifact-collector"
- persist_to_workspace:
root: ~/project/.stack-work/install/x86_64-osx/lts-10.0/8.2.2/bin/
paths:
- ghc-artifact-collector

x86_64-darwin-deploy:
macos:
xcode: "9.0"
steps:
- attach_workspace:
at: /tmp
- run: /tmp/ghc-artifact-collector --as-tool ghc-artifact-collector-x86_64-darwin /tmp/ghc-artifact-collector

workflows:
version: 2
build-and-deploy:
jobs:
- x86_64-linux-build
- x86_64-linux-deploy:
requires:
- x86_64-linux-build
filters:
branches:
only: master
- i386-linux-build
- i386-linux-deploy:
requires:
- i386-linux-build
filters:
branches:
only: master
- x86_64-darwin-build
- x86_64-darwin-deploy:
requires:
- x86_64-darwin-build
filters:
branches:
only: master
11 changes: 8 additions & 3 deletions appveyor.yml
Expand Up @@ -17,6 +17,11 @@ build_script:
- stack setup
- stack build

artifacts:
- path: .stack-work\install\dcc64cee\bin\ghc-artifact-collector.exe
name: ghc-artifact-collector
deploy:
- provider: Environment
name: tools
on:
branch: master

deploy_script:
- stack exec ghc-artifact-collector -- --as-tool ghc-artifact-collector-x86_64-windows .stack-work\install\dcc64cee\bin\ghc-artifact-collector.exe

0 comments on commit 261bb72

Please sign in to comment.