-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
config.yml
37 lines (37 loc) · 1.07 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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/go-ipfs 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/go-ipfs.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