Open
Description
Currently it is required core developers, who has access to crystal-lang/crystal to run tests and dist jobs. It is not effective with more contributors.
circleci allows to trigger pipelines with custom paramaters.
Example:
export CIRCLECI_API_KEY=<generate from circleci> : Create token in https://app.circleci.com/settings/user/tokens
export CRYSTAL_BRANCH="release/1.10" : against what crystal branch execute distribution-scripts
export FORK_OWNER=miry : PR authors nick
export FORK_BRANCH=<branch> : branch of PR in <user>/distribution-scripts
curl --request POST \
--url "https://circleci.com/api/v2/project/github/${FORK_OWNER}/crystal/pipeline" \
--header "Circle-Token: ${CIRCLECI_API_KEY}" \
--header "content-type: application/json" \
--data '{"branch":"'$CRYSTAL_BRANCH'","parameters":{"run_distribution_scripts_tests":true,"distribution-scripts-repo":"https://github.com/'$FORK_OWNER'/distribution-scripts.git","distribution-scripts-version":"'$FORK_BRANCH'"}}'
TODO:
- Allow to specify custom CRYSTAL_REPO for forks #273
- Introduce Github Action to build Darwin packages. #288
- Make llvm_bin work for arm and correct llvm archive name #267
- Migrate build linux package
- Migrate build docker package
References
Metadata
Metadata
Assignees
Labels
No labels