Permalink
Cannot retrieve contributors at this time
37 lines (37 sloc)
1.06 KB
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2.1 | |
| setup: true | |
| orbs: | |
| continuation: circleci/continuation@0.2.0 | |
| jobs: | |
| generate-params: | |
| executor: continuation/default | |
| steps: | |
| - checkout | |
| - run: | |
| name: Generate params | |
| # for builds on the ipfs/kubo repo, use 2xlarge for faster builds | |
| # but since this is not available for many contributors, we otherwise use medium | |
| command: | | |
| echo $CIRCLE_REPOSITORY_URL | |
| if [ "$CIRCLE_REPOSITORY_URL" = 'git@github.com:ipfs/kubo.git' ]; then | |
| resource_class=2xlarge | |
| make_jobs=10 | |
| else | |
| resource_class=medium | |
| make_jobs=3 | |
| fi | |
| cat \<<- EOF > params.json | |
| { | |
| "resource_class": "$resource_class", | |
| "make_jobs": "$make_jobs" | |
| } | |
| EOF | |
| cat params.json | |
| - continuation/continue: | |
| parameters: params.json | |
| configuration_path: .circleci/main.yml | |
| workflows: | |
| version: 2 | |
| setup-workflow: | |
| jobs: | |
| - generate-params |