Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
ci: prepare assets for release (#64)
Browse files Browse the repository at this point in the history
* ci: prepare assets for release

* ci: fix indentation

* ci: fix indentation

* ci: fix indentation

* ci: fix indentation

* ci: release in build step

* ci: calculate sha256sums

* ci: store artifacts

* ci: do a reverse copy

* ci: fix bash syntax

* ci: indicate os in release

* ci: pushd and pop'd ;)
  • Loading branch information
soc1c committed Jun 17, 2019
1 parent 8e44d65 commit 3512b59
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,30 @@ jobs:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
- run:
name: Compile
command: go build ./...
name: Compile Binaries
command: make build
- run:
name: Release Artifacts
command: |
pushd ./bin/
sha256sum ./abigen > ./abigen.sha256
sha256sum ./bootnode > ./bootnode.sha256
sha256sum ./disasm > ./disasm.sha256
sha256sum ./ethtest > ./ethtest.sha256
sha256sum ./evm > ./evm.sha256
sha256sum ./geth > ./geth.sha256
sha256sum ./rlpdump > ./rlpdump.sha256
popd
mkdir ./artifacts/
VERSION=$(bin/geth version | grep -i version | head -n1 | awk '{print $2}')
cp -rv ./bin ./geth-classic-${VERSION}-linux
tar -zcvf geth-classic-${VERSION}-linux.tar.gz geth-classic-${VERSION}-linux
cp -v ./geth-classic-${VERSION}-linux.tar.gz ./artifacts/
pushd ./artifacts
sha256sum ./geth-classic-${VERSION}-linux.tar.gz > ./geth-classic-${VERSION}-linux.sha256
popd
- store_artifacts:
path: ~/go-ethereum/artifacts
- save_cache:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
Expand All @@ -26,16 +48,16 @@ jobs:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
- run:
name: Run tests
command: go test ./...
name: Run All Tests
command: make test
- save_cache:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"

workflows:
version: 2
build-workflow:
release:
jobs:
- build-linux-go-1.12
- tests-linux-go-1.12
- build-linux-go-1.12

0 comments on commit 3512b59

Please sign in to comment.