Rebuild pipeline using goreleaser prebuilt binaries
This builds three separate binaries (darwin/amd64, darwin/arm64, linux/amd64), and then combines them into single release (including a universal darwin binary) using goreleaser. Also removes build-ntwk-{calibration,butterfly}
This commit is contained in:
parent
f5ec47a2b3
commit
568cd38b0f
@ -23,11 +23,6 @@ executors:
|
|||||||
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
install-deps:
|
|
||||||
steps:
|
|
||||||
- run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install python-is-python3
|
|
||||||
prepare:
|
prepare:
|
||||||
parameters:
|
parameters:
|
||||||
linux:
|
linux:
|
||||||
@ -41,9 +36,8 @@ commands:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- git_fetch_all_tags
|
- git_fetch_all_tags
|
||||||
- checkout
|
|
||||||
- when:
|
- when:
|
||||||
condition: << parameters.linux >>
|
condition: <<parameters.linux>>
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: Check Go Version
|
name: Check Go Version
|
||||||
@ -56,6 +50,8 @@ commands:
|
|||||||
fi
|
fi
|
||||||
- run: sudo apt-get update
|
- run: sudo apt-get update
|
||||||
- run: sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
|
- run: sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
|
||||||
|
- run: sudo apt-get install python-is-python3
|
||||||
|
|
||||||
- when:
|
- when:
|
||||||
condition: <<parameters.darwin>>
|
condition: <<parameters.darwin>>
|
||||||
steps:
|
steps:
|
||||||
@ -70,21 +66,12 @@ commands:
|
|||||||
echo 'export GOPATH="${HOME}/go"' >> $BASH_ENV
|
echo 'export GOPATH="${HOME}/go"' >> $BASH_ENV
|
||||||
- run: go version
|
- run: go version
|
||||||
- run:
|
- run:
|
||||||
name: Install pkg-config, goreleaser, and sha512sum
|
name: Install dependencies with Homebrew
|
||||||
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config goreleaser/tap/goreleaser coreutils
|
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config goreleaser/tap/goreleaser-pro coreutils hwloc jq
|
||||||
- run:
|
- run:
|
||||||
name: Install Rust
|
name: Install Rust
|
||||||
command: |
|
command: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
- run:
|
|
||||||
name: Install hwloc
|
|
||||||
command: |
|
|
||||||
mkdir ~/hwloc
|
|
||||||
curl --location https://download.open-mpi.org/release/hwloc/v2.4/hwloc-2.4.1.tar.gz --output ~/hwloc/hwloc-2.4.1.tar.gz
|
|
||||||
cd ~/hwloc
|
|
||||||
tar -xvzpf hwloc-2.4.1.tar.gz
|
|
||||||
cd hwloc-2.4.1
|
|
||||||
./configure && make && sudo make install
|
|
||||||
- run: git submodule sync
|
- run: git submodule sync
|
||||||
- run: git submodule update --init
|
- run: git submodule update --init
|
||||||
download-params:
|
download-params:
|
||||||
@ -156,7 +143,6 @@ jobs:
|
|||||||
mod-tidy-check:
|
mod-tidy-check:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: go mod tidy -v
|
- run: go mod tidy -v
|
||||||
- run:
|
- run:
|
||||||
@ -164,34 +150,9 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
git --no-pager diff go.mod go.sum
|
git --no-pager diff go.mod go.sum
|
||||||
git --no-pager diff --quiet go.mod go.sum
|
git --no-pager diff --quiet go.mod go.sum
|
||||||
build-linux:
|
|
||||||
executor: golang
|
|
||||||
steps:
|
|
||||||
- install-deps
|
|
||||||
- prepare
|
|
||||||
- run: sudo apt-get update
|
|
||||||
- run: sudo apt-get install npm
|
|
||||||
- run:
|
|
||||||
command: make buildall
|
|
||||||
- run:
|
|
||||||
name: check tag and version output match
|
|
||||||
command: ./scripts/version-check.sh ./lotus
|
|
||||||
- store_artifacts:
|
|
||||||
path: lotus
|
|
||||||
- store_artifacts:
|
|
||||||
path: lotus-miner
|
|
||||||
- store_artifacts:
|
|
||||||
path: lotus-worker
|
|
||||||
- run: mkdir linux && mv lotus lotus-miner lotus-worker linux/
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: "."
|
|
||||||
paths:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
build-debug:
|
build-debug:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make debug
|
command: make debug
|
||||||
@ -224,7 +185,6 @@ jobs:
|
|||||||
description: gotestsum format. https://github.com/gotestyourself/gotestsum#format
|
description: gotestsum format. https://github.com/gotestyourself/gotestsum#format
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make deps lotus
|
command: make deps lotus
|
||||||
@ -268,7 +228,6 @@ jobs:
|
|||||||
submodule is used.
|
submodule is used.
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make deps lotus
|
command: make deps lotus
|
||||||
@ -311,36 +270,6 @@ jobs:
|
|||||||
path: /tmp/test-reports
|
path: /tmp/test-reports
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/test-artifacts/conformance-coverage.html
|
path: /tmp/test-artifacts/conformance-coverage.html
|
||||||
build-ntwk-calibration:
|
|
||||||
description: |
|
|
||||||
Compile lotus binaries for the calibration network
|
|
||||||
parameters:
|
|
||||||
<<: *test-params
|
|
||||||
executor: << parameters.executor >>
|
|
||||||
steps:
|
|
||||||
- install-deps
|
|
||||||
- prepare
|
|
||||||
- run: make calibnet
|
|
||||||
- run: mkdir linux-calibrationnet && mv lotus lotus-miner lotus-worker linux-calibrationnet
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: "."
|
|
||||||
paths:
|
|
||||||
- linux-calibrationnet
|
|
||||||
build-ntwk-butterfly:
|
|
||||||
description: |
|
|
||||||
Compile lotus binaries for the butterfly network
|
|
||||||
parameters:
|
|
||||||
<<: *test-params
|
|
||||||
executor: << parameters.executor >>
|
|
||||||
steps:
|
|
||||||
- install-deps
|
|
||||||
- prepare
|
|
||||||
- run: make butterflynet
|
|
||||||
- run: mkdir linux-butterflynet && mv lotus lotus-miner lotus-worker linux-butterflynet
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: "."
|
|
||||||
paths:
|
|
||||||
- linux-butterflynet
|
|
||||||
build-lotus-soup:
|
build-lotus-soup:
|
||||||
description: |
|
description: |
|
||||||
Compile `lotus-soup` Testground test plan
|
Compile `lotus-soup` Testground test plan
|
||||||
@ -348,7 +277,6 @@ jobs:
|
|||||||
<<: *test-params
|
<<: *test-params
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: cd extern/filecoin-ffi && make
|
- run: cd extern/filecoin-ffi && make
|
||||||
- run:
|
- run:
|
||||||
@ -364,7 +292,6 @@ jobs:
|
|||||||
<<: *test-params
|
<<: *test-params
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
name: "download testground"
|
name: "download testground"
|
||||||
@ -384,16 +311,30 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "trigger payment channel stress testplan on taas"
|
name: "trigger payment channel stress testplan on taas"
|
||||||
command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/paych-stress-k8s.toml --metadata-commit=$CIRCLE_SHA1 --metadata-repo=filecoin-project/lotus --metadata-branch=$CIRCLE_BRANCH
|
command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/paych-stress-k8s.toml --metadata-commit=$CIRCLE_SHA1 --metadata-repo=filecoin-project/lotus --metadata-branch=$CIRCLE_BRANCH
|
||||||
build-macos:
|
|
||||||
|
build-linux-amd64:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
|
- prepare
|
||||||
|
- run: sudo apt-get update
|
||||||
|
- run: sudo apt-get install npm
|
||||||
|
- run: make lotus lotus-miner lotus-worker
|
||||||
|
- run:
|
||||||
|
name: check tag and version output match
|
||||||
|
command: ./scripts/version-check.sh ./lotus
|
||||||
|
- run: |
|
||||||
|
mkdir -p /tmp/workspace/linux_amd64_v1 && \
|
||||||
|
mv lotus lotus-miner lotus-worker /tmp/workspace/linux_amd64_v1/
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: /tmp/workspace
|
||||||
|
paths:
|
||||||
|
- linux_amd64_v1
|
||||||
|
|
||||||
|
build-darwin-amd64:
|
||||||
description: build darwin lotus binary
|
description: build darwin lotus binary
|
||||||
parameters:
|
working_directory: ~/go/src/github.com/filecoin-project/lotus
|
||||||
publish:
|
|
||||||
default: false
|
|
||||||
description: publish github release and homebrew?
|
|
||||||
type: boolean
|
|
||||||
macos:
|
macos:
|
||||||
xcode: "13.4.1"
|
xcode: "13.4.1"
|
||||||
working_directory: ~/go/src/github.com/filecoin-project/lotus
|
|
||||||
steps:
|
steps:
|
||||||
- prepare:
|
- prepare:
|
||||||
linux: false
|
linux: false
|
||||||
@ -402,24 +343,14 @@ jobs:
|
|||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: restore cargo cache
|
name: restore cargo cache
|
||||||
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
- when:
|
- run: make lotus lotus-miner lotus-worker
|
||||||
condition: << parameters.publish >>
|
- run: |
|
||||||
steps:
|
mkdir -p /tmp/workspace/darwin_amd64_v1 && \
|
||||||
- run: goreleaser release --rm-dist
|
mv lotus lotus-miner lotus-worker /tmp/workspace/darwin_amd64_v1/
|
||||||
- run: ./scripts/generate-checksums.sh
|
|
||||||
- run: ./scripts/publish-checksums.sh
|
|
||||||
- when:
|
|
||||||
condition:
|
|
||||||
not: << parameters.publish >>
|
|
||||||
steps:
|
|
||||||
- run: goreleaser release --rm-dist --snapshot
|
|
||||||
- run: ./scripts/generate-checksums.sh
|
|
||||||
- store_artifacts:
|
|
||||||
path: dist
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: "."
|
root: /tmp/workspace
|
||||||
paths:
|
paths:
|
||||||
- dist
|
- darwin_amd64_v1
|
||||||
- save_cache:
|
- save_cache:
|
||||||
name: save cargo cache
|
name: save cargo cache
|
||||||
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
@ -427,6 +358,47 @@ jobs:
|
|||||||
- "~/.rustup"
|
- "~/.rustup"
|
||||||
- "~/.cargo"
|
- "~/.cargo"
|
||||||
|
|
||||||
|
build-darwin-arm64:
|
||||||
|
description: self-hosted m1 runner
|
||||||
|
working_directory: ~/go/src/github.com/filecoin-project/lotus
|
||||||
|
machine: true
|
||||||
|
resource_class: filecoin-project/self-hosted-m1
|
||||||
|
steps:
|
||||||
|
- run: echo 'export PATH=/opt/homebrew/bin:"$PATH"' >> "$BASH_ENV"
|
||||||
|
- prepare:
|
||||||
|
linux: false
|
||||||
|
darwin: true
|
||||||
|
- install_ipfs_macos
|
||||||
|
- restore_cache:
|
||||||
|
name: restore cargo cache
|
||||||
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
|
- run: make lotus lotus-miner lotus-worker
|
||||||
|
- run: |
|
||||||
|
mkdir -p /tmp/workspace/darwin_arm64 && \
|
||||||
|
mv lotus lotus-miner lotus-worker /tmp/workspace/darwin_arm64/
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: /tmp/workspace
|
||||||
|
paths:
|
||||||
|
- darwin_arm64
|
||||||
|
- save_cache:
|
||||||
|
name: save cargo cache
|
||||||
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
|
paths:
|
||||||
|
- "~/.rustup"
|
||||||
|
- "~/.cargo"
|
||||||
|
- run:
|
||||||
|
command: make clean
|
||||||
|
when: always
|
||||||
|
|
||||||
|
release:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- run: goreleaser release --rm-dist --snapshot
|
||||||
|
- run: ./scripts/generate-checksums.sh
|
||||||
|
- run: ./scripts/publish-checksums.sh
|
||||||
|
|
||||||
build-appimage:
|
build-appimage:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:202111-02
|
image: ubuntu-2004:202111-02
|
||||||
@ -482,7 +454,6 @@ jobs:
|
|||||||
gofmt:
|
gofmt:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: "! go fmt ./... 2>&1 | read"
|
command: "! go fmt ./... 2>&1 | read"
|
||||||
@ -490,7 +461,6 @@ jobs:
|
|||||||
gen-check:
|
gen-check:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: make deps
|
- run: make deps
|
||||||
- run: go install golang.org/x/tools/cmd/goimports
|
- run: go install golang.org/x/tools/cmd/goimports
|
||||||
@ -505,7 +475,6 @@ jobs:
|
|||||||
docs-check:
|
docs-check:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: go install golang.org/x/tools/cmd/goimports
|
- run: go install golang.org/x/tools/cmd/goimports
|
||||||
- run: zcat build/openrpc/full.json.gz | jq > ../pre-openrpc-full
|
- run: zcat build/openrpc/full.json.gz | jq > ../pre-openrpc-full
|
||||||
@ -542,7 +511,6 @@ jobs:
|
|||||||
Arguments to pass to golangci-lint
|
Arguments to pass to golangci-lint
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make deps
|
command: make deps
|
||||||
@ -1121,65 +1089,66 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- build-debug
|
- build-debug
|
||||||
- build-linux:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
- build-ntwk-calibration:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
- build-ntwk-butterfly:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
- build-lotus-soup
|
- build-lotus-soup
|
||||||
- build-macos:
|
|
||||||
name: publish-macos
|
- build-linux-amd64:
|
||||||
publish: true
|
name: "Build ( linux / amd64 )"
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore:
|
|
||||||
- /.*/
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+$/
|
|
||||||
- build-macos:
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+-rc\d+$/
|
|
||||||
- build-appimage:
|
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
- goreleaser-prebuilt-m1
|
||||||
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- publish:
|
- build-darwin-amd64:
|
||||||
name: publish-linux
|
name: "Build ( darwin / amd64 )"
|
||||||
linux: true
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- goreleaser-prebuilt-m1
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- build-darwin-arm64:
|
||||||
|
name: "Build ( darwin / arm64 )"
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- goreleaser-prebuilt-m1
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- release:
|
||||||
|
name: "Release"
|
||||||
requires:
|
requires:
|
||||||
- build-linux
|
- "Build ( darwin / amd64 )"
|
||||||
|
- "Build ( linux / amd64 )"
|
||||||
|
- "Build ( darwin / arm64 )"
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
only:
|
||||||
- /.*/
|
- goreleaser-prebuilt-m1
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- build-appimage:
|
||||||
|
name: "Build AppImage"
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- publish:
|
- publish:
|
||||||
name: publish-appimage
|
name: "Publish AppImage"
|
||||||
appimage: true
|
appimage: true
|
||||||
requires:
|
requires:
|
||||||
- build-appimage
|
- "Build AppImage"
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
ignore:
|
||||||
@ -1188,14 +1157,14 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- build-and-push-image:
|
- build-and-push-image:
|
||||||
name: build-and-push/lotus-all-in-one
|
name: "Publish ECR (lotus-all-in-one)"
|
||||||
dockerfile: Dockerfile.lotus
|
dockerfile: Dockerfile.lotus
|
||||||
path: .
|
path: .
|
||||||
repo: lotus-dev
|
repo: lotus-dev
|
||||||
tag: '${CIRCLE_SHA1:0:8}'
|
tag: '${CIRCLE_SHA1:0:8}'
|
||||||
target: lotus-all-in-one
|
target: lotus-all-in-one
|
||||||
- build-and-push-image:
|
- build-and-push-image:
|
||||||
name: build-and-push/lotus-test
|
name: "Publish ECR (lotus-test)"
|
||||||
dockerfile: Dockerfile.lotus
|
dockerfile: Dockerfile.lotus
|
||||||
path: .
|
path: .
|
||||||
repo: lotus-test
|
repo: lotus-test
|
||||||
@ -1246,7 +1215,7 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+-rc\d+$/
|
- /^v\d+\.\d+\.\d+-rc\d+$/
|
||||||
- publish-dockerhub:
|
- publish-dockerhub:
|
||||||
name: publish-dockerhub
|
name: "Publish Dockerhub (stable)"
|
||||||
tag: stable
|
tag: stable
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
@ -1254,7 +1223,17 @@ workflows:
|
|||||||
- /.*/
|
- /.*/
|
||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+$/
|
||||||
|
- publish-dockerhub:
|
||||||
|
name: "Publish Dockerhub (candidate)"
|
||||||
|
tag: candidate
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore:
|
||||||
|
- /.*/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+-rc\d+$/
|
||||||
|
|
||||||
nightly:
|
nightly:
|
||||||
triggers:
|
triggers:
|
||||||
|
@ -23,11 +23,6 @@ executors:
|
|||||||
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
install-deps:
|
|
||||||
steps:
|
|
||||||
- run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install python-is-python3
|
|
||||||
prepare:
|
prepare:
|
||||||
parameters:
|
parameters:
|
||||||
linux:
|
linux:
|
||||||
@ -41,9 +36,8 @@ commands:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- git_fetch_all_tags
|
- git_fetch_all_tags
|
||||||
- checkout
|
|
||||||
- when:
|
- when:
|
||||||
condition: << parameters.linux >>
|
condition: <<parameters.linux>>
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: Check Go Version
|
name: Check Go Version
|
||||||
@ -56,6 +50,8 @@ commands:
|
|||||||
fi
|
fi
|
||||||
- run: sudo apt-get update
|
- run: sudo apt-get update
|
||||||
- run: sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
|
- run: sudo apt-get install ocl-icd-opencl-dev libhwloc-dev
|
||||||
|
- run: sudo apt-get install python-is-python3
|
||||||
|
|
||||||
- when:
|
- when:
|
||||||
condition: <<parameters.darwin>>
|
condition: <<parameters.darwin>>
|
||||||
steps:
|
steps:
|
||||||
@ -70,21 +66,12 @@ commands:
|
|||||||
echo 'export GOPATH="${HOME}/go"' >> $BASH_ENV
|
echo 'export GOPATH="${HOME}/go"' >> $BASH_ENV
|
||||||
- run: go version
|
- run: go version
|
||||||
- run:
|
- run:
|
||||||
name: Install pkg-config, goreleaser, and sha512sum
|
name: Install dependencies with Homebrew
|
||||||
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config goreleaser/tap/goreleaser coreutils
|
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config goreleaser/tap/goreleaser-pro coreutils hwloc jq
|
||||||
- run:
|
- run:
|
||||||
name: Install Rust
|
name: Install Rust
|
||||||
command: |
|
command: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
- run:
|
|
||||||
name: Install hwloc
|
|
||||||
command: |
|
|
||||||
mkdir ~/hwloc
|
|
||||||
curl --location https://download.open-mpi.org/release/hwloc/v2.4/hwloc-2.4.1.tar.gz --output ~/hwloc/hwloc-2.4.1.tar.gz
|
|
||||||
cd ~/hwloc
|
|
||||||
tar -xvzpf hwloc-2.4.1.tar.gz
|
|
||||||
cd hwloc-2.4.1
|
|
||||||
./configure && make && sudo make install
|
|
||||||
- run: git submodule sync
|
- run: git submodule sync
|
||||||
- run: git submodule update --init
|
- run: git submodule update --init
|
||||||
download-params:
|
download-params:
|
||||||
@ -156,7 +143,6 @@ jobs:
|
|||||||
mod-tidy-check:
|
mod-tidy-check:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: go mod tidy -v
|
- run: go mod tidy -v
|
||||||
- run:
|
- run:
|
||||||
@ -164,34 +150,9 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
git --no-pager diff go.mod go.sum
|
git --no-pager diff go.mod go.sum
|
||||||
git --no-pager diff --quiet go.mod go.sum
|
git --no-pager diff --quiet go.mod go.sum
|
||||||
build-linux:
|
|
||||||
executor: golang
|
|
||||||
steps:
|
|
||||||
- install-deps
|
|
||||||
- prepare
|
|
||||||
- run: sudo apt-get update
|
|
||||||
- run: sudo apt-get install npm
|
|
||||||
- run:
|
|
||||||
command: make buildall
|
|
||||||
- run:
|
|
||||||
name: check tag and version output match
|
|
||||||
command: ./scripts/version-check.sh ./lotus
|
|
||||||
- store_artifacts:
|
|
||||||
path: lotus
|
|
||||||
- store_artifacts:
|
|
||||||
path: lotus-miner
|
|
||||||
- store_artifacts:
|
|
||||||
path: lotus-worker
|
|
||||||
- run: mkdir linux && mv lotus lotus-miner lotus-worker linux/
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: "."
|
|
||||||
paths:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
build-debug:
|
build-debug:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make debug
|
command: make debug
|
||||||
@ -224,7 +185,6 @@ jobs:
|
|||||||
description: gotestsum format. https://github.com/gotestyourself/gotestsum#format
|
description: gotestsum format. https://github.com/gotestyourself/gotestsum#format
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make deps lotus
|
command: make deps lotus
|
||||||
@ -268,7 +228,6 @@ jobs:
|
|||||||
submodule is used.
|
submodule is used.
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make deps lotus
|
command: make deps lotus
|
||||||
@ -311,36 +270,6 @@ jobs:
|
|||||||
path: /tmp/test-reports
|
path: /tmp/test-reports
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/test-artifacts/conformance-coverage.html
|
path: /tmp/test-artifacts/conformance-coverage.html
|
||||||
build-ntwk-calibration:
|
|
||||||
description: |
|
|
||||||
Compile lotus binaries for the calibration network
|
|
||||||
parameters:
|
|
||||||
<<: *test-params
|
|
||||||
executor: << parameters.executor >>
|
|
||||||
steps:
|
|
||||||
- install-deps
|
|
||||||
- prepare
|
|
||||||
- run: make calibnet
|
|
||||||
- run: mkdir linux-calibrationnet && mv lotus lotus-miner lotus-worker linux-calibrationnet
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: "."
|
|
||||||
paths:
|
|
||||||
- linux-calibrationnet
|
|
||||||
build-ntwk-butterfly:
|
|
||||||
description: |
|
|
||||||
Compile lotus binaries for the butterfly network
|
|
||||||
parameters:
|
|
||||||
<<: *test-params
|
|
||||||
executor: << parameters.executor >>
|
|
||||||
steps:
|
|
||||||
- install-deps
|
|
||||||
- prepare
|
|
||||||
- run: make butterflynet
|
|
||||||
- run: mkdir linux-butterflynet && mv lotus lotus-miner lotus-worker linux-butterflynet
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: "."
|
|
||||||
paths:
|
|
||||||
- linux-butterflynet
|
|
||||||
build-lotus-soup:
|
build-lotus-soup:
|
||||||
description: |
|
description: |
|
||||||
Compile `lotus-soup` Testground test plan
|
Compile `lotus-soup` Testground test plan
|
||||||
@ -348,7 +277,6 @@ jobs:
|
|||||||
<<: *test-params
|
<<: *test-params
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: cd extern/filecoin-ffi && make
|
- run: cd extern/filecoin-ffi && make
|
||||||
- run:
|
- run:
|
||||||
@ -364,7 +292,6 @@ jobs:
|
|||||||
<<: *test-params
|
<<: *test-params
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
name: "download testground"
|
name: "download testground"
|
||||||
@ -384,16 +311,30 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "trigger payment channel stress testplan on taas"
|
name: "trigger payment channel stress testplan on taas"
|
||||||
command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/paych-stress-k8s.toml --metadata-commit=$CIRCLE_SHA1 --metadata-repo=filecoin-project/lotus --metadata-branch=$CIRCLE_BRANCH
|
command: ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/paych-stress-k8s.toml --metadata-commit=$CIRCLE_SHA1 --metadata-repo=filecoin-project/lotus --metadata-branch=$CIRCLE_BRANCH
|
||||||
build-macos:
|
|
||||||
|
build-linux-amd64:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
|
- prepare
|
||||||
|
- run: sudo apt-get update
|
||||||
|
- run: sudo apt-get install npm
|
||||||
|
- run: make lotus lotus-miner lotus-worker
|
||||||
|
- run:
|
||||||
|
name: check tag and version output match
|
||||||
|
command: ./scripts/version-check.sh ./lotus
|
||||||
|
- run: |
|
||||||
|
mkdir -p /tmp/workspace/linux_amd64_v1 && \
|
||||||
|
mv lotus lotus-miner lotus-worker /tmp/workspace/linux_amd64_v1/
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: /tmp/workspace
|
||||||
|
paths:
|
||||||
|
- linux_amd64_v1
|
||||||
|
|
||||||
|
build-darwin-amd64:
|
||||||
description: build darwin lotus binary
|
description: build darwin lotus binary
|
||||||
parameters:
|
working_directory: ~/go/src/github.com/filecoin-project/lotus
|
||||||
publish:
|
|
||||||
default: false
|
|
||||||
description: publish github release and homebrew?
|
|
||||||
type: boolean
|
|
||||||
macos:
|
macos:
|
||||||
xcode: "13.4.1"
|
xcode: "13.4.1"
|
||||||
working_directory: ~/go/src/github.com/filecoin-project/lotus
|
|
||||||
steps:
|
steps:
|
||||||
- prepare:
|
- prepare:
|
||||||
linux: false
|
linux: false
|
||||||
@ -402,24 +343,14 @@ jobs:
|
|||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: restore cargo cache
|
name: restore cargo cache
|
||||||
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
- when:
|
- run: make lotus lotus-miner lotus-worker
|
||||||
condition: << parameters.publish >>
|
- run: |
|
||||||
steps:
|
mkdir -p /tmp/workspace/darwin_amd64_v1 && \
|
||||||
- run: goreleaser release --rm-dist
|
mv lotus lotus-miner lotus-worker /tmp/workspace/darwin_amd64_v1/
|
||||||
- run: ./scripts/generate-checksums.sh
|
|
||||||
- run: ./scripts/publish-checksums.sh
|
|
||||||
- when:
|
|
||||||
condition:
|
|
||||||
not: << parameters.publish >>
|
|
||||||
steps:
|
|
||||||
- run: goreleaser release --rm-dist --snapshot
|
|
||||||
- run: ./scripts/generate-checksums.sh
|
|
||||||
- store_artifacts:
|
|
||||||
path: dist
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: "."
|
root: /tmp/workspace
|
||||||
paths:
|
paths:
|
||||||
- dist
|
- darwin_amd64_v1
|
||||||
- save_cache:
|
- save_cache:
|
||||||
name: save cargo cache
|
name: save cargo cache
|
||||||
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
@ -427,6 +358,47 @@ jobs:
|
|||||||
- "~/.rustup"
|
- "~/.rustup"
|
||||||
- "~/.cargo"
|
- "~/.cargo"
|
||||||
|
|
||||||
|
build-darwin-arm64:
|
||||||
|
description: self-hosted m1 runner
|
||||||
|
working_directory: ~/go/src/github.com/filecoin-project/lotus
|
||||||
|
machine: true
|
||||||
|
resource_class: filecoin-project/self-hosted-m1
|
||||||
|
steps:
|
||||||
|
- run: echo 'export PATH=/opt/homebrew/bin:"$PATH"' >> "$BASH_ENV"
|
||||||
|
- prepare:
|
||||||
|
linux: false
|
||||||
|
darwin: true
|
||||||
|
- install_ipfs_macos
|
||||||
|
- restore_cache:
|
||||||
|
name: restore cargo cache
|
||||||
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
|
- run: make lotus lotus-miner lotus-worker
|
||||||
|
- run: |
|
||||||
|
mkdir -p /tmp/workspace/darwin_arm64 && \
|
||||||
|
mv lotus lotus-miner lotus-worker /tmp/workspace/darwin_arm64/
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: /tmp/workspace
|
||||||
|
paths:
|
||||||
|
- darwin_arm64
|
||||||
|
- save_cache:
|
||||||
|
name: save cargo cache
|
||||||
|
key: v3-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.sum" }}
|
||||||
|
paths:
|
||||||
|
- "~/.rustup"
|
||||||
|
- "~/.cargo"
|
||||||
|
- run:
|
||||||
|
command: make clean
|
||||||
|
when: always
|
||||||
|
|
||||||
|
release:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- run: goreleaser release --rm-dist --snapshot
|
||||||
|
- run: ./scripts/generate-checksums.sh
|
||||||
|
- run: ./scripts/publish-checksums.sh
|
||||||
|
|
||||||
build-appimage:
|
build-appimage:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:202111-02
|
image: ubuntu-2004:202111-02
|
||||||
@ -482,7 +454,6 @@ jobs:
|
|||||||
gofmt:
|
gofmt:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: "! go fmt ./... 2>&1 | read"
|
command: "! go fmt ./... 2>&1 | read"
|
||||||
@ -490,7 +461,6 @@ jobs:
|
|||||||
gen-check:
|
gen-check:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: make deps
|
- run: make deps
|
||||||
- run: go install golang.org/x/tools/cmd/goimports
|
- run: go install golang.org/x/tools/cmd/goimports
|
||||||
@ -505,7 +475,6 @@ jobs:
|
|||||||
docs-check:
|
docs-check:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run: go install golang.org/x/tools/cmd/goimports
|
- run: go install golang.org/x/tools/cmd/goimports
|
||||||
- run: zcat build/openrpc/full.json.gz | jq > ../pre-openrpc-full
|
- run: zcat build/openrpc/full.json.gz | jq > ../pre-openrpc-full
|
||||||
@ -542,7 +511,6 @@ jobs:
|
|||||||
Arguments to pass to golangci-lint
|
Arguments to pass to golangci-lint
|
||||||
executor: << parameters.executor >>
|
executor: << parameters.executor >>
|
||||||
steps:
|
steps:
|
||||||
- install-deps
|
|
||||||
- prepare
|
- prepare
|
||||||
- run:
|
- run:
|
||||||
command: make deps
|
command: make deps
|
||||||
@ -846,65 +814,66 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- build-debug
|
- build-debug
|
||||||
- build-linux:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
- build-ntwk-calibration:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
- build-ntwk-butterfly:
|
|
||||||
filters:
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
- build-lotus-soup
|
- build-lotus-soup
|
||||||
- build-macos:
|
|
||||||
name: publish-macos
|
- build-linux-amd64:
|
||||||
publish: true
|
name: "Build ( linux / amd64 )"
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore:
|
|
||||||
- /.*/
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+$/
|
|
||||||
- build-macos:
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
|
||||||
tags:
|
|
||||||
only:
|
|
||||||
- /^v\d+\.\d+\.\d+-rc\d+$/
|
|
||||||
- build-appimage:
|
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
- goreleaser-prebuilt-m1
|
||||||
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- publish:
|
- build-darwin-amd64:
|
||||||
name: publish-linux
|
name: "Build ( darwin / amd64 )"
|
||||||
linux: true
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- goreleaser-prebuilt-m1
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- build-darwin-arm64:
|
||||||
|
name: "Build ( darwin / arm64 )"
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- goreleaser-prebuilt-m1
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- release:
|
||||||
|
name: "Release"
|
||||||
requires:
|
requires:
|
||||||
- build-linux
|
- "Build ( darwin / amd64 )"
|
||||||
|
- "Build ( linux / amd64 )"
|
||||||
|
- "Build ( darwin / arm64 )"
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
only:
|
||||||
- /.*/
|
- goreleaser-prebuilt-m1
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- build-appimage:
|
||||||
|
name: "Build AppImage"
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- /^release\/v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- publish:
|
- publish:
|
||||||
name: publish-appimage
|
name: "Publish AppImage"
|
||||||
appimage: true
|
appimage: true
|
||||||
requires:
|
requires:
|
||||||
- build-appimage
|
- "Build AppImage"
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
ignore:
|
||||||
@ -913,14 +882,14 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- build-and-push-image:
|
- build-and-push-image:
|
||||||
name: build-and-push/lotus-all-in-one
|
name: "Publish ECR (lotus-all-in-one)"
|
||||||
dockerfile: Dockerfile.lotus
|
dockerfile: Dockerfile.lotus
|
||||||
path: .
|
path: .
|
||||||
repo: lotus-dev
|
repo: lotus-dev
|
||||||
tag: '${CIRCLE_SHA1:0:8}'
|
tag: '${CIRCLE_SHA1:0:8}'
|
||||||
target: lotus-all-in-one
|
target: lotus-all-in-one
|
||||||
- build-and-push-image:
|
- build-and-push-image:
|
||||||
name: build-and-push/lotus-test
|
name: "Publish ECR (lotus-test)"
|
||||||
dockerfile: Dockerfile.lotus
|
dockerfile: Dockerfile.lotus
|
||||||
path: .
|
path: .
|
||||||
repo: lotus-test
|
repo: lotus-test
|
||||||
@ -971,7 +940,7 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+-rc\d+$/
|
- /^v\d+\.\d+\.\d+-rc\d+$/
|
||||||
- publish-dockerhub:
|
- publish-dockerhub:
|
||||||
name: publish-dockerhub
|
name: "Publish Dockerhub (stable)"
|
||||||
tag: stable
|
tag: stable
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
@ -979,7 +948,17 @@ workflows:
|
|||||||
- /.*/
|
- /.*/
|
||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+$/
|
||||||
|
- publish-dockerhub:
|
||||||
|
name: "Publish Dockerhub (candidate)"
|
||||||
|
tag: candidate
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore:
|
||||||
|
- /.*/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+-rc\d+$/
|
||||||
|
|
||||||
nightly:
|
nightly:
|
||||||
triggers:
|
triggers:
|
||||||
|
105
.goreleaser.yaml
105
.goreleaser.yaml
@ -8,112 +8,47 @@ universal_binaries:
|
|||||||
- id: lotus
|
- id: lotus
|
||||||
replace: true
|
replace: true
|
||||||
name_template: lotus
|
name_template: lotus
|
||||||
ids:
|
|
||||||
- lotus_darwin_amd64
|
|
||||||
- lotus_darwin_arm64
|
|
||||||
- id: lotus-miner
|
- id: lotus-miner
|
||||||
replace: true
|
replace: true
|
||||||
name_template: lotus-miner
|
name_template: lotus-miner
|
||||||
ids:
|
|
||||||
- lotus-miner_darwin_amd64
|
|
||||||
- lotus-miner_darwin_arm64
|
|
||||||
- id: lotus-worker
|
- id: lotus-worker
|
||||||
replace: true
|
replace: true
|
||||||
name_template: lotus-worker
|
name_template: lotus-worker
|
||||||
ids:
|
|
||||||
- lotus-worker_darwin_amd64
|
|
||||||
- lotus-worker_darwin_arm64
|
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- id: lotus_darwin_amd64
|
- id: lotus
|
||||||
main: ./cmd/lotus
|
builder: prebuilt
|
||||||
binary: lotus
|
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
env:
|
- arm64
|
||||||
- CGO_ENABLED=1
|
goamd64:
|
||||||
- FFI_BUILD_FROM_SOURCE=1
|
- v1
|
||||||
ldflags:
|
prebuilt:
|
||||||
- -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.{{.ShortCommit}}
|
path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus
|
||||||
- id: lotus-miner_darwin_amd64
|
- id: lotus-miner
|
||||||
main: ./cmd/lotus-miner
|
builder: prebuilt
|
||||||
binary: lotus-miner
|
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
env:
|
- arm64
|
||||||
- CGO_ENABLED=1
|
goamd64:
|
||||||
- FFI_BUILD_FROM_SOURCE=1
|
- v1
|
||||||
ldflags:
|
prebuilt:
|
||||||
- -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.{{.ShortCommit}}
|
path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus-miner
|
||||||
- id: lotus-worker_darwin_amd64
|
- id: lotus-worker
|
||||||
main: ./cmd/lotus-worker
|
builder: prebuilt
|
||||||
binary: lotus-worker
|
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
env:
|
|
||||||
- CGO_ENABLED=1
|
|
||||||
- FFI_BUILD_FROM_SOURCE=1
|
|
||||||
ldflags:
|
|
||||||
- -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.{{.ShortCommit}}
|
|
||||||
- id: lotus_darwin_arm64
|
|
||||||
main: ./cmd/lotus
|
|
||||||
binary: lotus
|
|
||||||
goos:
|
|
||||||
- darwin
|
|
||||||
goarch:
|
|
||||||
- arm64
|
- arm64
|
||||||
env:
|
goamd64:
|
||||||
- CGO_ENABLED=1
|
- v1
|
||||||
- FFI_BUILD_FROM_SOURCE=1
|
prebuilt:
|
||||||
- CPATH=/opt/homebrew/include
|
path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus-worker
|
||||||
- LIBRARY_PATH=/opt/homebrew/lib
|
|
||||||
ldflags:
|
|
||||||
- -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.{{.ShortCommit}}
|
|
||||||
- id: lotus-miner_darwin_arm64
|
|
||||||
main: ./cmd/lotus-miner
|
|
||||||
binary: lotus-miner
|
|
||||||
goos:
|
|
||||||
- darwin
|
|
||||||
goarch:
|
|
||||||
- arm64
|
|
||||||
env:
|
|
||||||
- CGO_ENABLED=1
|
|
||||||
- FFI_BUILD_FROM_SOURCE=1
|
|
||||||
- CPATH=/opt/homebrew/include
|
|
||||||
- LIBRARY_PATH=/opt/homebrew/lib
|
|
||||||
ldflags:
|
|
||||||
- -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.{{.ShortCommit}}
|
|
||||||
- id: lotus-worker_darwin_arm64
|
|
||||||
main: ./cmd/lotus-worker
|
|
||||||
binary: lotus-worker
|
|
||||||
goos:
|
|
||||||
- darwin
|
|
||||||
goarch:
|
|
||||||
- arm64
|
|
||||||
env:
|
|
||||||
- CGO_ENABLED=1
|
|
||||||
- FFI_BUILD_FROM_SOURCE=1
|
|
||||||
- CPATH=/opt/homebrew/include
|
|
||||||
- LIBRARY_PATH=/opt/homebrew/lib
|
|
||||||
ldflags:
|
|
||||||
- -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.{{.ShortCommit}}
|
|
||||||
# - id: linux
|
|
||||||
# main: ./cmd/lotus
|
|
||||||
# binary: lotus
|
|
||||||
# goos:
|
|
||||||
# - linux
|
|
||||||
# goarch:
|
|
||||||
# - amd64
|
|
||||||
# env:
|
|
||||||
# - CGO_ENABLED=1
|
|
||||||
# ldflags:
|
|
||||||
# - -X=github.com/filecoin-project/lotus/build.CurrentCommit=+git.{{.ShortCommit}}
|
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: primary
|
- id: primary
|
||||||
|
Loading…
Reference in New Issue
Block a user