diff --git a/.circleci/config.yml b/.circleci/config.yml index 80458e233..23be8e223 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -26,8 +48,8 @@ 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: @@ -35,7 +57,7 @@ jobs: workflows: version: 2 - build-workflow: + release: jobs: - - build-linux-go-1.12 - tests-linux-go-1.12 + - build-linux-go-1.12