mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00

Closes https://github.com/ipfs/kubo/issues/8991 Part of https://github.com/ipfs/kubo/issues/8804
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
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
|