circle: buildall on macos

This commit is contained in:
Łukasz Magiera 2019-12-17 14:47:26 +01:00
parent 746e08e717
commit 4f7cc07df5
2 changed files with 6 additions and 10 deletions

View File

@ -157,7 +157,7 @@ jobs:
test-short: test-short:
<<: *test <<: *test
build_macos: build-macos:
description: build darwin lotus binary description: build darwin lotus binary
macos: macos:
xcode: "10.0.0" xcode: "10.0.0"
@ -187,11 +187,11 @@ jobs:
chmod +x $HOME/.bin/jq chmod +x $HOME/.bin/jq
- restore_cache: - restore_cache:
name: restore go mod and cargo cache name: restore go mod and cargo cache
key: v1-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.mod" }} key: v2-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.mod" }}
- install-deps - install-deps
- go/mod-download - go/mod-download
- run: - run:
command: make build command: make buildall
no_output_timeout: 30m no_output_timeout: 30m
- store_artifacts: - store_artifacts:
path: lotus path: lotus
@ -199,9 +199,8 @@ jobs:
path: lotus-storage-miner path: lotus-storage-miner
- save_cache: - save_cache:
name: save go mod and cargo cache name: save go mod and cargo cache
key: v1-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.mod" }} key: v2-go-deps-{{ arch }}-{{ checksum "~/go/src/github.com/filecoin-project/lotus/go.mod" }}
paths: paths:
- "~/go/pkg"
- "~/go/src/github.com" - "~/go/src/github.com"
- "~/go/src/golang.org" - "~/go/src/golang.org"
- "~/.rustup" - "~/.rustup"
@ -262,7 +261,4 @@ workflows:
go-test-flags: "--timeout 10m --short" go-test-flags: "--timeout 10m --short"
- mod-tidy-check - mod-tidy-check
- build-all - build-all
- build_macos: - build-macos
filters:
branches:
only: master

View File

@ -98,7 +98,7 @@ func (f *fs) reserve(typ dataType, size uint64) error {
types.NewInt(need).SizeStr(), types.NewInt(need).SizeStr(),
types.NewInt(uint64(avail)).SizeStr(), types.NewInt(uint64(avail)).SizeStr(),
types.NewInt(uint64(fsavail)).SizeStr(), types.NewInt(uint64(fsavail)).SizeStr(),
types.NewInt(uint64(f.reservedBytes()))) types.NewInt(uint64(f.reservedBytes())).SizeStr())
} }
f.reserved[typ] += need f.reserved[typ] += need