Reimplement new pipeline and allow limiting number of cores used fo build

Co-authored-by: belliash <belliash@codingworkshop.eu.org>
Reviewed-on: xt-sys/xtchain#3
Reviewed-by: Piotr Likoski <likoski@noreply.codingworkshop.git>
This commit is contained in:
2022-07-25 15:21:17 +02:00
parent a65685de5c
commit 546d8718d2
2 changed files with 16 additions and 10 deletions

View File

@@ -2,4 +2,13 @@ pipeline:
build:
image: codingworkshop/oscw-runner:latest
commands:
- sh build-linux.sh
- CORES=10 ./build-linux.sh
publish:
image: codingworkshop/oscw-runner:latest
secrets:
- OSCW_GITHUB_USERNAME
- OSCW_GITHUB_PASSWORD
when:
event: tag
commands:
- github_publish $OSCW_GITHUB_USERNAME $OSCW_GITHUB_PASSWORD $(ls xtchain-*-linux.tar.zst)