-
Notifications
You must be signed in to change notification settings - Fork 87
Allow sharing the Go cache directory for crossbuilds #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
5ce765f
7c768cd
cab1a56
1958603
a040f46
f42b9d5
b3aefe6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,14 +23,24 @@ jobs: | |||||
| - run: git diff --exit-code | ||||||
|
|
||||||
| build: | ||||||
| executor: golang | ||||||
| machine: | ||||||
| image: ubuntu-1604:201903-01 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| working_directory: /home/circleci/.go_workspace/src/github.com/prometheus/promu | ||||||
|
|
||||||
| steps: | ||||||
| - setup_remote_docker | ||||||
| - checkout | ||||||
| - run: make promu | ||||||
| - run: promu crossbuild -v | ||||||
| - run: go install . | ||||||
| - restore_cache: | ||||||
| keys: | ||||||
| - v01-gocache-{{ checksum "go.mod" }} | ||||||
| - v01-gocache- | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's for testing |
||||||
| - run: mkdir -p /home/circleci/.cache/go-build | ||||||
| - run: promu crossbuild -v --gocache-path /home/circleci/.cache/go-build | ||||||
| - run: du -sh /home/circleci/.cache/go-build | ||||||
| - save_cache: | ||||||
| key: v01-gocache-{{ checksum "go.mod" }} | ||||||
| paths: | ||||||
| - /home/circleci/.cache/go-build | ||||||
| - persist_to_workspace: | ||||||
| root: . | ||||||
| paths: | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we use 1804?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not listed in the docs.